GSoD 2020 - OpenMRS REST API Documentation

@saurabh We had this resource in openmrs-1.8 as SystemInformation resource, which is directly fetching the system information from AdministrationService.

We refactored the Swagger documentation in early 2019 and it seems like this resource didn’t get updated with that change. That’s why we can’t get it over our Swagger documentation.

1 Like

thanks @suthagar23 for your reply :slight_smile:

@ayesh I tested this endpoint /systeminformation for a GET request and it works so should I add this to the documentation as well along with small description of the “SystemInformation” that you suggested?? :slightly_smiling_face:

and @suthagar23 as far as I can infer from the code snippet you shared this resource just supports only one operation that is getAll , am I missing something ??

@saurabh yes please go ahead.

And yes it supports one endpoint.Thats normal isnt it :slightly_smiling_face:.

1 Like

@ayesh I have made a couple of more PRs please review them. :slightly_smiling_face:

nice sure will do

1 Like

@saurabh

Can you start working on the Java Samples now. I see that as a good thing to do at this moment.

1 Like

@ayesh sure I would first setup the SDK and then start working on this :slightly_smiling_face:

I will just be a bit irregular due to my end sems right now (they got delayed due to covid :frowning: ), but I will continue working :slightly_smiling_face:

@saurabh @rainbow

thanks alot for the great work done so far :slightly_smiling_face:. Appreciates alot.

Sure no worries take you’re time. I would prefer you to use the demo server I think you don’t need sdk setup.

1 Like

@ayesh I have java code for Base64 authorization. It is in plain java. If you think it is usable. I can make a pr. I was trying to use openmrs SDK to build an OWA to make REST API requests, but I am have some difficulty.

so I think you got the idea wrong here.

We need java client samples calling the rest api we have not sdk samples. Here we are building a documentation web site not code playground so no sdk code it’s about simple java get post request froma client to the rest api :slightly_smiling_face:

Thanks, good to know.

@ayesh should we add proper curl examples as well since they can be easily derived fromt the current http calls and they are pretty easy to run for anyone straight from the command prompt ??

and as a part of testing the previous examples I have tested several of them uptill now so will it be useful to add them along the language tabs ? :slightly_smiling_face:

@saurabh what do u mean by proper curl examples?

So if you look in most of the documentation of current opensource products they have documented the curl calls as we have in the examples. It’s a language-agnostic way of defining the endpoint for developers to understand.

I don’t see a need to change them to curl examples for now. The best would be to continue and achieve the same examples in java in the new tab that you are working currently. :slightly_smiling_face:

1 Like

okay @ayesh I would do that :slightly_smiling_face:

@ayesh will it be good to add some code stubs that we removed from the examples here in this getting started section?? with some comments maybe. :slightly_smiling_face:

Yes that would be cool

Please have a look on the new http samples. The new font color is not that clear it seems. Will it be possible to fix it first ?

1 Like

yes @ayesh I was actually looking for a fix for its font color or ,even http console fix I will make a PR when that gets fixed first !!

actually @ayesh I looked up the languages that rouge supports that is eventually slate supports and I got that I should be using shell instead of http :smile:

it looks better I think , I will make a PR after you review.

shell