Create a new post
Changed onCreate a new post to share something with others
Request
- Base URLhttp://localhost:8080/api
- URLhttp://localhost:8080/api/posts
- Authnone declared
Request body
Example request
{
"username": "john_doe",
"content": "Just had an amazing hike in the mountains! #outdoorlife"
}Response
Post created successfully
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
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
the
request property's maxLength was increased from1000to2000
- breaking
- breaking
the
request property's minLength was increased from0to1 - breaking
the
request property's minLength was increased from0to1 - 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
the
request property's maxLength was set to1000 - warning
the
request property's maxLength was set to50 - 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