Skip to main content
POST
/
api
/
blog
/
{id}
/
toggle-like
curl -X POST https://api-verifier-2.onrender.com/api/blog/65a1b2c3d4e5f6g7h8i9j0k1/toggle-like \
  -H "Authorization: Bearer <your-token>"
{
  "liked": true,
  "likesCount": 43
}

Documentation Index

Fetch the complete documentation index at: https://docs.quader864.ir/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint requires authentication.

Path parameters

id
string
required
The post ID

Response

liked
boolean
true if the post is now liked, false if unliked
likesCount
number
Updated total likes count
curl -X POST https://api-verifier-2.onrender.com/api/blog/65a1b2c3d4e5f6g7h8i9j0k1/toggle-like \
  -H "Authorization: Bearer <your-token>"
{
  "liked": true,
  "likesCount": 43
}