get

Get the contents of a Document or a Collection.

A Collection is returned as a line-separated list of paths of contained Documents or Collections. Collection paths have a trailing slash.

A Document is obtained as serialized XML.

A non-XML data Document is obtained as a binary stream. The 'Content-Type' header reflects the property "content-type" of the document.


HTTP Request: GET

Parameters:

Name Value Description
path Path of the Library member to get. Can be specified explicitly or as the remainder the HTTP URL.
library Name of Library used (can be empty if exactly one Library in server).

Response:

   mime-type: text/xml or text/plain

 

Error codes:

NotFound
when the Library member does not exist.
AccessControl
when the user is not allowed to read the Library member contents.