Revision History API
Availability
Service endpoint
HTTP GET
to the following path:
Purpose
The Revision History API is used to retrieve the revision history of a form data document.
API
Request
Path elements
The endpoint path requires values for the following path elements:
app
app name
Yes
form
form name
Yes
document
document id
Yes
These specify the specific form data document for which to retrieve the revision history.
Note that this API does not retrieve draft form data, only final form data.
Parameters
The following URL parameters are supported:
page-number
the page number, starting at 1
No
No
positive integer
page-size
the number of items per page, defaulting to 10, maximum 100
No
No
positive integer
A client can call the API using paging, to obtain smaller chunks of the revision history. A first request can, for example, use page-number=1
and page-size=10
. If the response indicates that there are more items, the client can then call the API again with page-number=2
and page-size=10
, and so on.
Examples
Retrieve the first page of revision history for the orbeon/bookshelf form data document with id adcfea40124ef8e68fa81764df389d5a80b61762
:
Response
The response is an XML document. Example:
The following elements and attributes are returned:
application-name
: the application name, as requested in the URLform-name
: the form name, as requested in the URLdocument-id
: the document id, as requested in the URLtotal
: the total number of entries (current and historical) found in the databasemin-last-modified-time
:the earliest last modified time found in the database
max-last-modified-time
:the latest last modified time found in the database
page-size
: the number of items per page, as requested in the URLpage-number
: the page number, starting at 1, as requested in the URLform-version
: the form version associated with the form datacreated-time
: the time the form data was initially createdcreated-username
: the username of the user who created the form data; empty if the data was modified by an anonymous userdocument
: element describing one of the form data documentsmodified-time
: the time the form data was last modifiedmodified-username
: the username of the user who last modified the form data; empty if the data was modified by an anonymous userowner-username
: the username of the user who owns the form dataowner-group
: the group of the user who owns the form data; empty if there is no user group informationdeleted
: whether the form data was marked as deleted
See also
Blog post: Data Revision History
Last updated