GET/users/{id}/comments
List user's comments
Retrieve user's comments. Same filtering, sorting, and pagination as `/comments`.
Parameters 13
| Name | Type | Description |
|---|---|---|
_page | query · integer | Page number (1-based) |
_limit | query · integer | Items per page |
_start | query · integer | Slice start index (alternative to page-based) |
ReturnsComment
Bearer token required
Response examples
200Array of comments
[
{
"id": 1,
"postId": 1,
"userId": 1,
"body": "How does this compare to the approach described in the official docs?",
"likes": 16,
"createdAt": "2023-04-28T06:59:47.906Z"
}
]404404 — resource not found
{
"error": {
"status": 404,
"message": "users #999 not found"
}
}