Get post's comments
Get all comments of a specific post.
Path Parameters
The id of the post.
- 200
- 403
- 404
- 422
- 500
Request has been handled successfully.
Schema
- Array [
- ]
data object
comments object[]
List of comments that belong to the post.
The id of the comment.
The creation date of the comment.
Whether the comment is hidden.
The body of the comment.
The parent comment's id. Will be null
if this comment does not have a parent.
author object
Details about the author.
The id of the author of the comment.
The username of the author of the comment.
The first name of the author of the comment.
The first name of the author of the comment.
The display name of the author of the comment.
Whether the comment's author has been verified.
The profile image of the author of the comment. Will be null
if it's empty
Whether the current user is following the author of the comment or not.
{
"success": true,
"data": {
"comments": [
{
"id": 135,
"createdAt": "2018-06-27T14:49:10.000Z",
"hidden": false,
"body": "Ma shaa Allah Lahawla walaquwata illa billah",
"parentId": 135,
"author": {
"id": 135,
"username": "amer",
"firstName": "Amer",
"lastName": "Abbas",
"displayName": "A Abbas",
"verified": true,
"profileImage": "//s3.amazonaws.com/qreflect-bucket/events/banner/en/avatars/15514/medium.png?1655384045",
"followed": true
}
}
]
}
}
Forbidden error. Can either be due to access token not being passed, having been expired or the caller trying to access a resource without enough permissions.
Schema
error object
{
"success": false,
"error": {
"code": "ForbiddenError",
"message": "Token expired"
}
}
Not Found. The resource being accessed does not exist.
Schema
error object
{
"success": false,
"error": {
"code": "NotFoundError",
"message": "The resource you're looking for does not exist"
}
}
Validation Error. The request includes one or more invalid params. Please check the request params and try again.
Schema
error object
{
"success": false,
"error": {
"code": "ValidationError",
"message": "`id` is required"
}
}
Server Error. Something went wrong, try again later.
Schema
error object
{
"success": false,
"error": {
"code": "ServerError",
"message": "Something went wrong"
}
}