REST API - getDocumentMetadata - GET

The table summarizes the REST API - getDocumentMetadata - GET.

Request - GET

Format
GET <baseurl>/document/metadata/<docref>
Path Parameters docref: Can be obtained using getFolderContent. (Some CMIS servers use characters in document references that must be URL encoded. If you are using such a CMIS server, URL encode the document reference, or use the alternative POST method with a request body.)

Response - GET

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

Example - GET

Request
GET <baseurl>/document/metadata/DocumentID-e50c2653-0fd7-4fef-ad6f-2ee460ba52cf%3B1.0
Response
{
  "xml-fragment": {
    "specifier": { "id": "e50c2653-0fd7-4fef-ad6f-2ee460ba52cf;1.0" },
    "name": "Proposal.docx",
    "version": "1.0",
    "mimeType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
    "createdDateTime": "2014-10-03T12:12:54.809",
    "createdBy": "admin",
    "lastModifiedDateTime": "2014-10-03T13:36:48.145",
    "lastModifiedBy": "admin",
    "byteSize": "24008"
  }
}