Was this helpful?
Liking/Unliking operations
Adds a like to a specific blog post. Increments likes count.
ID of the blog post.
POST /api/v1/likes/blog/{blogId} HTTP/1.1 Host: blog-api.codewithsadee.com Authorization: Bearer JWT Accept: */*
Blog liked successfully. Returns new likes count.
{ "likesCount": 15 }
Removes a like from a specific blog post. Decrements likes count.
DELETE /api/v1/likes/blog/{blogId} HTTP/1.1 Host: blog-api.codewithsadee.com Authorization: Bearer JWT Accept: */*
Request successful, no response body.
No content