Likes
Authorizations
AuthorizationstringRequired
JWT Access Token obtained via login/register/refresh
Path parameters
blogIdstring · objectidRequired
ID of the blog post.
Responses
200
Blog liked successfully. Returns new likes count.
application/json
400
User has already liked this blog.
application/json
401
Authentication information is missing or invalid (e.g., missing/expired token).
application/json
404
The specified resource was not found.
application/json
500
An unexpected error occurred on the server.
application/json
post
/likes/blog/{blogId}Authorizations
AuthorizationstringRequired
JWT Access Token obtained via login/register/refresh
Path parameters
blogIdstring · objectidRequired
ID of the blog post.
Responses
204
Request successful, no response body.
400
User has not liked this blog previously.
application/json
401
Authentication information is missing or invalid (e.g., missing/expired token).
application/json
404
The specified resource was not found.
application/json
500
An unexpected error occurred on the server.
application/json
delete
/likes/blog/{blogId}No content
Last updated
Was this helpful?