Get a specific comment
Changed onRetrieve a specific comment by its ID
Request
- Base URLhttp://localhost:8080/api
- URLhttp://localhost:8080/api/posts/{postId}/comments/{commentId}
- Authnone declared
Path parameters
Unique identifier of the post
Unique identifier of the comment
Response
Successfully retrieved the comment
Example response
{
"id": "987fcdeb-51a2-43d1-9f6b-123456789abc",
"postId": "123e4567-e89b-12d3-a456-426614174000",
"username": "jane_smith",
"content": "Great photo! Where was this taken?",
"createdAt": "2025-06-01T11:15:00Z",
"updatedAt": "2025-06-01T11:15:00Z"
}Changes
- breaking
added the new path request parameter
commentId - breaking
added the new path request parameter
postId - breaking
the
response property's maxLength was increased from500to1000for the response status - breaking
the
response's property type changed fromobjecttoarrayfor status - breaking
the
response's property type changed fromobjecttoarrayfor status - info
api operation id
getCommentremoved and replaced withgetCommentById
- breaking
- breaking
the
response's property type changed fromintegertostring, and format from no format touuidfor status - breaking
the
response's property type changed fromintegertostring, and format from no format touuidfor status - warning
deleted the
pathrequest parametercommentId - warning
deleted the
pathrequest parameterpostId - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking