GET /posts/{postId}/comments/{commentId}

Path parameters

  • postId integer(int64) Required
  • commentId integer(int64) Required

Responses

  • 200 */*

    OK

    Hide response attributes Show response attributes object
    • id integer(int64)
    • user object
      Hide user attributes Show user attributes object
      • id integer(int64)
      • username string
      • password string
      • email string
      • roles array[object]
        Hide roles attributes Show roles attributes object
        • id integer(int64)
        • name string
        • description string
      • createdAt string(date-time)
      • updatedAt string(date-time)
      • enabled boolean
      • verificationToken string
      • expiryDate string(date-time)
      • authorities array[object]
        Hide authorities attribute Show authorities attribute object
        • authority string
      • accountNonLocked boolean
      • credentialsNonExpired boolean
      • accountNonExpired boolean
    • text string
    • createdAt string(date-time)
GET /posts/{postId}/comments/{commentId}
curl \
 --request GET 'http://localhost:8080/posts/{postId}/comments/{commentId}'
Response examples (200)
{
  "id": 42,
  "user": {
    "id": 42,
    "username": "string",
    "password": "string",
    "email": "string",
    "roles": [
      {
        "id": 42,
        "name": "string",
        "description": "string"
      }
    ],
    "createdAt": "2026-05-04T09:42:00Z",
    "updatedAt": "2026-05-04T09:42:00Z",
    "enabled": true,
    "verificationToken": "string",
    "expiryDate": "2026-05-04T09:42:00Z",
    "authorities": [
      {
        "authority": "string"
      }
    ],
    "accountNonLocked": true,
    "credentialsNonExpired": true,
    "accountNonExpired": true
  },
  "text": "string",
  "createdAt": "2026-05-04T09:42:00Z"
}