Skip to main content

Likes


Like a post

POST /blog/like/$id$
Responses
http codecontent-typeresponse
200application/json{"statusCode":"200","message":"Blog {id} liked","data":"null"}
404application/json{"statusCode":"404","message":"User not found we can't like this post","data":"null"}
404application/json{"statusCode":"404","message":"Blog not found we can't like this Blog","data":"null"}
404application/json{"statusCode":"404","message":"You already likeed this post","data":"null"}

Remove like from a post

POST /blog/removelike/$id$
Responses
http codecontent-typeresponse
200application/json{"statusCode":"200","message":"Like removed","data":"null"}
404application/json{"statusCode":"404","message":"User not found we can't remove like","data":"null"}
404application/json{"statusCode":"404","message":"Blog not found we can't remove like","data":"null"}
404application/json{"statusCode":"404","message":"You haven't liked this blog post or this blog post haven't liked","data":"null"}