Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleGET XML Example
curl --user user:password "host:8080/openmrs/ws/rest/v1/shr/documents?contentType=text%2Fxml&patientId=1&patientIdType=ECID" -H "Accept: text/xml"
 
Response:
<linked-list>
 <org.openmrs.module.shr.contenthandler.api.Content>
  <formatCode>xml<<formatCode>ANC_Summary</formatCode>
  <contentType>text/xml</contentType>
  <encoding>UTF-8</encoding>
  <representation>TXT</representation>
  <payloadIsUrl>false</payloadIsUrl>
  <payload>&lt;data&gt;...&lt;/data&gt;</payload>
 </org.openmrs.module.shr.contenthandler.api.Content>
</linked-list>

...