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

« Previous Version 14 Current »

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

 

ParameterExplanation
pathPath of the resource
OAuth access tokenAuthorized access token per user for an hour by default
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/versions?path={path of the resource}&start={ start page }&size={ number of records }
HTTP Request HeaderAuthorization: Bearer { OAuth access token }
DescriptionGet revision paths of the resource
Response Typeapplication/json
ResponseHTTP 200 OK

Get Revision of a  Resource.

AttributesValues
HTTP MethodGET
Request URI/version?path={path of the resource}&id={revision number}
HTTP Request HeaderAuthorization: Bearer { OAuth access token }
idRevision id of the resource
DescriptionGet the resouece resource for a given revision
Response Typeapplication/octet-stream
ResponseHTTP 200 OK

Delete Revision of a Resource.

AttributesValues
HTTP methodDELETE
Request URI/version?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