Platform 2.0 will come bundled with REST-WS module and FHIR module. Before making the final release, we intend to run end to end tests for the REST endpoints defined in both the modules. Testing of FHIR endpoints was done by Mayank Sharma and we are left with testing of REST-WS module's endpoints. This wiki describes the process we are following to test the REST-WS endpoints.
For REST-WS module we are using this Google Sheet to log testing activities. Later, data from the sheet will be used to develop an automated rest endpoint testing system and we will deprecate the manual testing of rest endpoints for future releases. We are only proceeding with the manual testing due to time constraints and absence of an established end to end rest-endpoint testing system for platform releases.
Steps to test
- Head to http://uat01.openmrs.org:8080/openmrs/module/webservices/rest/apiDocs.htm
- Choose a category of rest endpoints from the screen
- Click on expand operations to see the list of available rest endpoints
- Enter the parameter values in the provided textboxes
- Click on "Try it out" button for that endpoint
- Head to the Google Sheet and fill up the entries for the endpoint you just tested