Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

AttributesValues

HTTP Method                

GET
Request URI/comments?path={ resource path }&start={ start page }&size={ number of records }
HTTP Request HeaderAuthorization: Bearer { OAuth access token }
DescriptionThis retrieves all the comments posted on the specific resource.
ResponseHTTP 200 OK
Response TypeJSONapplication/json

Get a Specific Comment on a Resource

AttributesValues

HTTP Method                

GET
Request URI/comment?path={ resource path }&id={ comment id }
HTTP Request HeaderAuthorization: Bearer { OAuth access token }
DescriptionThis retrieves the specific comment associated with the given comment id.
ResponseHTTP 200 OK
Response TypeJSONapplication/json

Add a Comment to a Resource

AttributesValues

HTTP Method                

PUT
Request URI/comment?path={ resource path }
HTTP Request Header

Authorization: Bearer {OAuth access token}

Content-Type: text/plain

PayloadComment appears in text format
DescriptionAdd the payload comment to the requested resource
ResponseHTTP 204 No Content
Response TypeJSONapplication/json

Update a Comment on a Resource

AttributesValues

HTTP Method                

POST
Request URI/comment?path={ resource path }&id={ comment id}
HTTP Request Header

Authorization: Bearer  { OAuth access token }

Content-Type: text/plain

PayloadNew comment to be updated as TEXT.
DescriptionIt replaces the new comment for the given comment id
ResponseHTTP 204 No Content
Response TypeJSONapplication/json

Delete a Comment on a Resource

AttributesValues

HTTP Method                

DELETE
Request URI/comment?path={ resource path }&id={ comment id}
HTTP Request HeaderAuthorization: Bearer { OAuth access token }
ResponseHTTP 204 No Content
Response TypeJSONapplication/json

.