REST API - getDocumentContent - POST

The table summarizes the REST API - getDocumentContent - POST.

Request - POST

Format POST <baseurl>/document/read
Body The document reference is embedded in the request body.

Response - POST

JSON Returns a JSON representation of the content of the GetDocumentContentResponse element.
XML Returns the content of the GetDocumentContentResponse element (from the DocumentService schema).

Example - POST

Request
POST <baseurl>/document/read
Body
{
  "GetDocumentContentRequest": { "reference": "DocumentID-bce953fd-98a2-49f9-8074-9b4c13182145;1.0" }
}
Response
{
  "xml-fragment": {
    "content": "ICBRdWV1ZSBOYW1lICAgICAgICAgICAgICAgICAgI.......
    "mime-type": "text/plain"
  }
}