This section explains the following REST operations regarding the version/versions of resources which have been secured with OAuth 2.0.
Parameter | Explanation |
---|---|
path | Path of the resource |
OAuth access token | Authorized access token per user for an hour by default |
id | Revision Id of the resource |
start | Start page number |
size | Number of versions to be fetched. |
Get Revision Paths of a Resource.
Attributes | Values |
---|---|
HTTP Method | GET |
Request URI | /versions?path={path of the resource}&start={ start page }&size={ number of records } |
HTTP Request Header | Authorization: Bearer { OAuth access token } |
Description | Get revision paths of the resource |
Response Type | JSON |
Response | HTTP 200 OK |
Get Revision of a Resource.
Attributes | Values |
---|---|
HTTP Method | GET |
Request URI | /version?path={path of the resource}&id={revision number} |
HTTP Request Header | Authorization: Bearer { OAuth access token } |
id | Revision id of the resource |
Description | Get the resouece resource for a given revision |
Response Type | application/octet-stream |
Response | HTTP 200 OK |
Delete Revision of a Resource.
Attributes | Values |
---|---|
HTTP method | DELETE |
Request URI | /version?path={path of the resource}&id={revision number} |
id | Revision id of the resource |
Description | Delete the given revision of the resource |
Response Type | JSON |
Response | HTTP 204 No Content. |