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.
Parameter | Explanation |
---|
path | Path of the resource |
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 | /revisions?path={path of the resource}&start={ start page }&size={ number of records } |
HTTP Request Header | Authorization: Basic { base64encoded(username:password) } |
Description | Get revision paths of the resource |
Response Type | application/json |
Response | HTTP 200 OK |
Get Revision of a Resource
Attributes | Values |
---|
HTTP Method | GET |
Request URI | /revision?path={path of the resource}&id={revision number} |
HTTP Request Header | Authorization: Basic { base64encoded(username:password) } |
ID | Revision ID of the resource |
Description | Get the resouece resource for a given revision |
Response Type | application/octet-stream |
Response | HTTP 200 OK |
Create Revision of a Resource
Attributes | Values |
---|
HTTP Method | POST |
Request URI | /revision?path={path of the resource} |
HTTP Request Header | Authorization: Basic { base64encoded(username:password) } |
Response Type | application/octet-stream |
Response | HTTP 204 No Content. |
Delete Revision of a Resource
Attributes | Values |
---|
HTTP method | DELETE |
Request URI | /revision?path={path of the resource}&id={revision number} |
ID | Revision ID of the resource |
Description | Delete the given revision of the resource |
Response Type | application/json |
Response | HTTP 204 No Content. |