Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This section explains the following REST operations regarding the version/versions of resources which have been secured with Basic Auth.

ParameterExplanation
pathPath of the resource
IDRevision ID of the resource
startStart page number
sizeNumber of versions to be fetched.

 

Get Revision Paths of a Resource

AttributesValues
HTTP MethodGET
Request URI/revisions?path={path of the resource}&start={ start page }&size={ number of records }
HTTP Request HeaderAuthorization: Basic { base64encoded(username:password) }
DescriptionGet revision paths of the resource
Response Typeapplication/json
ResponseHTTP 200 OK

Get Revision of a  Resource

AttributesValues
HTTP MethodGET
Request URI/revision?path={path of the resource}&id={revision number}
HTTP Request HeaderAuthorization: Basic { base64encoded(username:password) }
IDRevision ID of the resource
DescriptionGet the resouece resource for a given revision
Response Typeapplication/octet-stream
ResponseHTTP 200 OK

Create Revision of a  Resource

AttributesValues
HTTP MethodPOST
Request URI/revision?path={path of the resource}
HTTP Request HeaderAuthorization: Basic { base64encoded(username:password) }
Response Typeapplication/octet-stream
ResponseHTTP 204 No Content.

Delete Revision of a Resource

AttributesValues
HTTP methodDELETE
Request URI/revision?path={path of the resource}&id={revision number}
IDRevision ID of the resource
DescriptionDelete the given revision of the resource
Response Typeapplication/json
ResponseHTTP 204 No Content.

 

 

  • No labels