v1

latestOpenAPI 3.0.1MIT2026-07-1712915.9 KB
Likes

Like a post

Like a post to show appreciation

post/posts/{postId}/likes

Path parameters

postIdstring uuid required
Example:123e4567-e89b-12d3-a456-426614174000

Unique identifier of the post

Request body

usernamestring required

Username of the user liking the post

Example request

{
  "username": "mike_wilson"
}

Response

Post liked successfully

postIdstring uuid required

ID of the liked post

usernamestring required

Username who liked the post

likedAtstring date-time required

Timestamp when the post was liked

Example response

{
  "postId": "123e4567-e89b-12d3-a456-426614174000",
  "username": "mike_wilson",
  "likedAt": "2025-06-01T12:00:00Z"
}