REST Web Services

https://wiki.openmrs.org/display/docs/REST+Web+Services+API

https://wiki.openmrs.org/display/docs/REST+Module




Sample REST calls:

c:\>curl -u admin:Admin123 -i http://localhost:8881/openmrs-standalone/ws/rest/v1/person?q=John -X GET -H "Accept: application/xml"
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=7D28EA1012A1A309056DE9CCF0AD12AC; Path=/openmrs-standalone
ETag: "0def6f16fde284c9bece8181dbe3a8e16"
Content-Type: application/xml;charset=UTF-8
Content-Length: 491
Date: Wed, 14 May 2014 06:37:14 GMT

<object><results><person><uuid>007037a0-0500-11e3-8ffd-0800200c9a66</uuid><display>John Smith</display><links><link><rel>self</rel><uri>NEED-TO-CONFIGURE/ws/rest/v1/person/007037a0-0500-11e3-8ffd-0800200c9a66</uri></link></links></person><patient><uuid>1cd47cd9-f715-47b0-8e8d-12d42b293cfd</uuid><display>1000KN - John Carter</display><links><link><rel>self</rel><uri>NEED-TO-CONFIGURE/ws/rest/v1/patient/1cd47cd9-f715-47b0-8e8d-12d42b293cfd</uri></link></links></patient></results></object>

















Subpages (1): REST client curl errors
Comments