This section explains the following REST operations regarding the collection which have been secured with OAuth 2.0.
- Get the content of a collection.
- Add a collection
- Delete a given collection
Get the content of a collection
Attributes | Values |
---|---|
HTTP Method | GET |
Request URI | http://<ip address>:<port>/restapi/resource/<collection path> |
HTTP Request Header | Authorization: Bearer <OAuth access token> |
Response | Content of the requested collection |
Response Type | JSON |
Add a resource
Attributes | values |
---|---|
HTTP Method | PUT |
Request URI | http://<ip address>:<port>/restapi/resource/<complete path of the collection to be added> |
HTTP Request Header | Authorization: Bearer <OAuth access token> |
Request Content Type | application/collection |
Response | 204 No Content - if Success/ 401 - if fails |
Delete a resource
Attributes | values |
---|---|
HTTP Method | DELETE |
Request URI | http://<ip address>:<port>/restapi/resource/<collection path> |
HTTP Request Header | Authorization: Bearer <OAuth access token> |
Response | 204 No Content - if success/ 401 - if fails. |
Note |
---|
Please note the following points for the above requests.
|