BellaDati Technical Documentation : GET Report Comments

/api/reports/:id/comments

Returns all comments for the report with the specified ID.

Resource Information

Parameters

Parameters

Detail

id

ID of the report whose comments to fetch. You can find the ID in the response to /api/reports.
Example: 123

offset
(optional)

Specifies the page offset if pagination is necessary.
Example: 2

size
(optional)

Specifies the number of entries on each page if pagination is necessary.
Example: 15

Sample Request / Response

Using curl:

curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/reports/7741/comments

The JSON format response:

{
  "comments" : [
    {
	  "id" : "12345",
      "authorId" : "1",
      "author" : "John Smith",
      "text" : "This is a comment.",
      "when" : "Fri, 16 Aug 2013 12:56:50 GMT"
    }
  ],
  "offset" : 0,
  "size" : 15
}