GET api/sitedocuments/{documentIdOrGlobalId}/data
Get a site document data by identifier.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| documentIdOrGlobalId |
The site document identifier. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
SiteDocumentDataViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DocumentId |
Gets or sets the identifier. |
integer |
None. |
| Data |
Gets or sets the document data. |
Collection of byte |
None. |
| ContentType |
Gets or sets the document content type. |
string |
None. |
| GlobalId |
Gets or sets the GUID global id |
globally unique identifier |
None. |
| Links |
Gets the links. |
Collection of LinkModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"documentId": 1,
"data": "QEA=",
"contentType": "sample string 3",
"globalId": "8357df72-6617-4a88-ab04-ff73c52b736e"
}
application/xml, text/xml
Sample:
<SiteDocumentDataViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TelogWebAPI.Models"> <ContentType>sample string 3</ContentType> <Data>QEA=</Data> <DocumentId>1</DocumentId> <GlobalId>8357df72-6617-4a88-ab04-ff73c52b736e</GlobalId> </SiteDocumentDataViewModel>