POSTS
(getCommentsByPostId)
Returns 200 (OK) as application/json
app/controllers/api/post_comments_controller.ts - getCommentsByPostId
get/api/posts/{postId}/comments
Request
- The document declares no server URL.
- Auth: HTTP bearer
Path parameters
postIdstring required
Example:string
Post to leave a comment
Query parameters
pagestring
Example:string
Pagination
Response
Returns 200 (OK) as application/json
Example response
{
"data": [
{
"id": 134,
"postId": 206,
"user": {
"username": "Lorem Ipsum",
"firstName": "John",
"lastName": "Doe",
"id": 538,
"email": "johndoe@example.com",
"createdAt": "2021-03-23T16:13:08.489+01:00",
"balance": 185
},
"comment": "Lorem Ipsum",
"createdAt": "Lorem Ipsum",
"deletedAt": "Lorem Ipsum",
"replyId": 775,
"repliesAmount": 159
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.