Retrieve a paged list of comments for the indicated content item. The results are paged (so as to be able to handle large volumes of comments) and are sorted chronologically (oldest to newest).
GET /api/v1/content/39b7a825-a8b6-4cf9-9233-d9ae698830ce/comments HTTP/1.1
Accept: application/json
----------------------------------------
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 1032
ETag: W/"a20-5lUqb9H7NGBW3ZZyLt3cUMh48Fw"
{
"items": [{
"id": 13,
"parentId": null,
"authorId": "66a5db1f-2785-498d-9068-e24ddbba03f2",
"body": "Test post please ignore.",
"created": 1539715796,
"updated": 1539715796,
"deleted": false
}, {
"id": 15,
"parentId": 13,
"authorId": "66a5db1f-2785-498d-9068-e24ddbba03f2",
"body": "Reply!",
"created": 1539715820,
"updated": 1539715820,
"deleted": false
}, {
"id": 24,
"parentId": 13,
"authorId": "66a5db1f-2785-498d-9068-e24ddbba03f2",
"body": "Another reply.",
"created": 1539715843,
"updated": 1539715843,
"deleted": false
}, {
"id": 14,
"parentId": null,
"authorId": "66a5db1f-2785-498d-9068-e24ddbba03f2",
"body": "Best post don't ignore.",
"created": 1539715805,
"updated": 1539715805,
"deleted": false
}, {
"id": 16,
"parentId": 14,
"authorId": "66a5db1f-2785-498d-9068-e24ddbba03f2",
"body": "SPAM IN THE PLACE WHERE YOU LIVE",
"created": 1539715834,
"updated": 1539715834,
"deleted": false
}, {
"id": 31,
"parentId": 14,
"authorId": "66a5db1f-2785-498d-9068-e24ddbba03f2",
"body": "SPAM IN THE PLACE WHERE YOU LIVE",
"created": 1539715934,
"updated": 1539715934,
"deleted": false
}],
"page": 0,
"pageSize": 100,
"total": 6
}Authentication is not generally required, but special rules apply as noted in GET content/{contentId}.
| Name | Description | Value |
|---|---|---|
| contentId | the ID of the content as a GUID with dashes | string |
| Name | Description | Value |
|---|---|---|
| size | the size of the page to return; default 100 optional | number |
| page | the 0-based index of the page to return; default 0 optional | number |
NONE
Successful responses are code 200 with data in the response body. Error responses are standard.
| Name | Description | Value |
|---|---|---|
| page | the 0-based index of the page of these results | number |
| count | the number of items on this page | number |
| total | the number of items across all pages | number |
| items | the array of comments on this page | array of object; see Comment |
| Name | Description | Value |
|---|---|---|
| id | the ID of the comment; simple integer | number |
| parentId | the ID of the parent this comment is nested under, or null for root-level comments | number |
| authorId | the ID of the comment's author, as a GUID with dashes | string |
| body | the textual content of this comment | string |
| created | the date this comment was created, as a Unix timestamp | number |
| updated | the date this comment was last updated, as a Unix timestamp; will be equal to created if the comment has not been altered since creation | number |
| deleted | true if this comment has been deleted, false otherwise | boolean |