...
GET /objects/{pid}\versions
Wiki Markup |
---|
GET /objects/\{pid}/versions?\[format] |
Gets a list of timestamps indicating when components changed in an object. This is a set of timestamps indicating when a datastream was created or modified in the object. These timestamps can be used to request a timestamped dissemination request to view the object as it appeared at a specific point in time.
Please note that this timestamp list is generated by requesting the timestamp list of all CURRENTLY Active datastreams, and sorting it. Inactive and Deleted datastreams are disregarded.
Please note that this timestamp list does not include changes to object properties, but only datastream changes.
Parameter | Format | Meaning | Default | Example |
---|---|---|---|---|
format | one of text/xml, text/html, html, xml | The format of the return value | text/html | text/xml |
Return code | Meaning |
---|---|
200 | OK, Object history in the specified format |
404 | Object not found in repository. Body is exception as text/plain |
401 | Unauthorized, the security policy forbade this operation with the supplied user credentials. Body as exception as text/plain |
400 | Wrong syntax in request. Exception as body, text/plain |
500 | Other, unknown error encountered |
Example of html format
TODO
Example of xml format
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<fedoraObjectHistory pid="demo:testObject">
<!--1 or more repetitions:-->
<objectChangeDate>2008-09-29T03:49:450Z</objectChangeDate>
<objectChangeDate>2008-10-29T05:47:000Z</objectChangeDate>
</fedoraObjectHistory>
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by XMLSPY v2004 rel. 2 U (http://www.xmlspy.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="fedoraObjectHistory">
<xs:complexType>
<xs:sequence>
<xs:element name="objectChangeDate" type="xs:string" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="pid" use="required">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
|
GET /objects/{pid}\objectXML
...