Is it possible to move examples alongside the corresponding documentation? For example, if you look at create person, the example comes after the documentation and appears to cause a blank space in the documentation to the left.
Thanks for the suggestions.
I would like to see more code examples, use cases, workflows on API documentations, not just endpoints, requests and responses. The challenge is where and how to gather these information. You’ve given some good starting points.
The format of the page can definitely be improved.
I am trying to figure out how to generate java code for making an API call.
I found some code in controller test.
Could you please help in deciding whether these are usable in API docs?
Thank you!
yes @ayesh I have just pushed the changes after searching through the defintions and help by @gcliff ,
i will move on to the things @burke suggested now !!
@ayesh@burke For java requests, we can either just use plain java or we can use opemrs.SDK like what @saurabh suggested . But the benefit of using plain java code is the users don’t have to install anything other than jdk. There are benefits of using Openmrs.SDK as well. Do you have a preference?
@rainbow I think its better to use SDKs because they are designed for this purpose and if anybody wants to use OpenMRS webServices preferrably will first need to setup SDK so that work really gets simplified for that person and he dosent need to deal with all the things the devs have already abstracted to make life easier,
also I looked up examples of various API documentations as well and they use their SDKs for presenting examples for sending requests and making API calls.
I have compiled a few resources from the openMRS wiki like this
and about the global properties now being called as OpenMRS setting after the version 1.9 here .
@ayesh how do you think Global Property should fit in the documentation since we are having a segregation based mostly on resources , where do you think it should go !!
@saurabh sorry for the late reply. It looks great with the new formatting great work done.
And ofcourse global properties we should include in the docs. Based on property changes we have a lot work going on in plugins. Anything which helps developers should be there in the docs.
So I would suggest after Authentication section section in the docs @burke what do you think does that fit in there ?