Listar comentários de um post

GET /blog-posts/{postId}/comments

Retorna todos os comentários de um post específico.

Path parameters

  • postId integer Required

    ID do post

Responses

  • 200 application/json

    Comentários encontrados com sucesso.

    Hide response attributes Show response attributes object
    • comment_id integer
    • username string
    • profile_image string | null
    • comment_text string
    • commented_at string(date-time)
    • isVisible boolean
GET /blog-posts/{postId}/comments
curl \
 --request GET 'http://localhost:8000/blog-posts/{postId}/comments'
Response examples (200)
[
  {
    "comment_id": 42,
    "username": "string",
    "profile_image": "string",
    "comment_text": "string",
    "commented_at": "2025-05-04T09:42:00Z",
    "isVisible": true
  }
]