Entry
Get a single content
The requested resource can be any content in the repository that is permitted for the current user. The resource may be addressed with a content's Path or Id. It returns one entity and all its properties.
If the requested resource is not found, the server returns a 404 Error status code.
Get a single content by Id
In this case the URL must satisfy a strict rule: the service path followed by /content
(case insensitive) and content Id wrapped in parentheses without white-spaces.
Get a single content by Path
In this case the URL is the service path followed by the path of the parent and an entity name wrapped by apostrophes and parentheses.
Addressing a single property of a content
Any property of a content entity can be addressed in the following way:
This returns the following response:
{"d": {"DisplayName": "Document Workspaces"}}
Addressing a property value
Raw value of a property can be accessed if the request is extended with the /$value
parameter.
This returns the following response:
Document Workspaces
Accessing binary stream
Binary data (value of a binary field) is represented by an OData Named Resource Stream Value stream value. The media_src
and content_type
properties are filled with proper values, while the edit_media
and media_etag
properties are not supported. Check the "Binary" property of the following response as an example:
{"d": {"__metadata": {"uri": "/OData.svc/Root/Content/IT/Document_Library('Aenean semper.doc')","type": "File"},..."Binary": {"__mediaresource": {"edit_media": null,"media_src": "/Root/Content/IT/Document_Library/Aenean semper.doc","content_type": "application/msword","media_etag": null}},...