Get a specific post
Changed onRetrieve a specific post by its ID to read in detail
Request
- Base URLhttp://localhost:8080/api
- URLhttp://localhost:8080/api/posts/{postId}
- Authnone declared
Path parameters
Unique identifier of the post
Response
Successfully retrieved the post
Example response
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"username": "john_doe",
"content": "Just had an amazing hike in the mountains! #outdoorlife",
"createdAt": "2025-06-01T10:30:00Z",
"updatedAt": "2025-06-01T10:30:00Z",
"likesCount": 15,
"commentsCount": 3
}Changes
- breaking
added the new path request parameter
postId - breaking
the
response property's maxLength was increased from1000to2000for 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
getPostremoved and replaced withgetPostById
- breaking
- breaking
the
response's property type changed fromintegertostring, and format from no format touuidfor status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - 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 - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking