GET api/sitedocuments/{documentIdOrGlobalId}/data

Get a site document data by identifier.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
documentIdOrGlobalId

The site document identifier.

string

Required

Body Parameters

None.

Response Information

Resource Description

SiteDocumentDataViewModel
NameDescriptionTypeAdditional 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": "59719ca8-a13f-4d75-9afc-fe17d5d65075"
}

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>59719ca8-a13f-4d75-9afc-fe17d5d65075</GlobalId>
</SiteDocumentDataViewModel>