POST
/
posts
/
toggle-like
/
{post_id}
Toggle post like
curl --request POST \
  --url https://localhost:5000/posts/toggle-like/{post_id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "<string>",
  "isLiked": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

post_id
string
required

Post ID

Response

Like status updated

success
boolean
Example:

true

message
string
isLiked
boolean