GET
/
comments
/
get
/
{post_id}
Get post comments
curl --request GET \
  --url https://localhost:5000/comments/get/{post_id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "comments": [
    {
      "text": "<string>",
      "author": "<string>",
      "post": "<string>",
      "_id": "<string>",
      "parentComment": "<string>",
      "replyTo": "<string>",
      "likes": [
        "<string>"
      ],
      "repliesCount": 0,
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

post_id
string
required

Post ID

Response

Post comments

success
boolean
Example:

true

comments
object[]