Like a post
Changed onLike a post to show appreciation
Request
- Base URLhttp://localhost:8080/api
- URLhttp://localhost:8080/api/posts/{postId}/likes
- Authnone declared
Path parameters
Unique identifier of the post
Request body
Example request
{
"username": "mike_wilson"
}Response
Post liked successfully
Example response
{
"postId": "123e4567-e89b-12d3-a456-426614174000",
"username": "mike_wilson",
"likedAt": "2025-06-01T12:00:00Z"
}Changes
- breaking
added the new path request parameter
postId - breaking
the
response's property type changed fromobjecttoarrayfor status - breaking
the
response's property type changed fromobjecttoarrayfor status - breaking
the
response's property type changed fromobjecttoarrayfor status
- breaking
- breaking
the
request property's minLength was increased from0to1 - warning
deleted the
pathrequest parameterpostId - warning
the
request property's maxLength was set to50 - info
added the media type
application/jsonfor the response with the status - 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 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
- breaking