...
Datastream-Centric methods
Create a new datastream
Wiki Markup |
---|
PUT /objects/\{pid}/datastreams/\{dsID}\[/withControlGroup/\{cg}]
Contents: The initial contents of the datastream, if any |
Creates a new datastream in the object with controlgroup X or {cg} if specified. Datastream is either empty or with the initial content
Delete a datastream
DELETE /objects/{pid}/datastreams/{dsID}
Purge the object from the repository
Get Contents of a datastream
GET /objects/{pid}/datastreams/{dsID}
Update an Inline or Managed Datastream
POST /objects/{pid}/datastreams/{dsID}
Contents: The new content of the datastream
TODO (overlaps with create a new datastream...)
Get the properties of a datastream
GET /objects/{pid}/datastreams/{dsID}/properties
Get a specific property
GET /objects/{pid}/datastreams/{dsID}/properties/{prop}
Return: The value
Update a property
PUT /objects/{pid}/datastreams/{dsID}/properties/{prop}
Contents: The new value
examples: versionable, state and so on.
Update an External or Redirect Datastream
Contentlocation is just a property of these datastreams
PUT /objects/{pid}/datastreams/{dsID}/properties/contentLocation
Contents: The URL to the contents of the datastream
Get the relations of the datastream
GET /objects/{pid}/datastreams/{dsID}/relations
The RELS-INT block "about" this datastream
Add a relation to the datastream
PUT /objects/{pid}/datastreams/{dsID}/relations/{rel-name}/to/{objPid}
Purge a relation from the datastream
DELETE /objects/{pid}/datastreams/{dsID}/relations/{rel-name}/to/{objPid}
Add a literal relation to the datastream
Wiki Markup |
---|
PUT /objects/\{pid}/datastreams/\{dsID}/relations/\{rel-name}/toLiteral/\{value}\[/withType/\{type}] |
Purge a literal relation from a datastream
DELETE /objects/{pid}/datastreams/{dsID}/relations/{rel-name}/toLiteral/{value}
Get version timestamps of a datastream
The idea is that the old version of the datastream should support the same getter methods as the current version
GET /objects/{pid}/datastreams/{dsID}/versions
Get the contents of a specific version of a datastream
GET /objects/{pid}/datastreams/{dsID}/versions/{timestamp}
Get the versioned properties of a specific version
GET /objects/{pid}/datastreams/{dsID}/versions/{timestamp}/properties
Get a specific versioned property of a specific version
GET /objects/{pid}/datastreams/{dsID}/versions/{timestamp}/properties/{propertyname}
Get the relations of a specific version
GET /objects/{pid}/datastreams/{dsID}/versions/{timestamp}/relations/