forked from abramhindle/CMPUT404-project-socialdistribution
-
Notifications
You must be signed in to change notification settings - Fork 1
Likes API
Mustafa Khairullah edited this page Mar 29, 2021
·
20 revisions
GET: author/<str:author_id>/post/<str:post_id>/likes likes_post
Will retrieve all likes for a given authors Post ID specified in the path
GET: author/<str:author_id>/post/<str:post_id>/comments/<str:comment_id>/likes likes_comment
Will retrieve all the likes for a given comment ID specified in the path
- If the user is unauthorized
403 FORBIDDENis returned - If no specific author ID or post ID is specified
400 BAD_REQUESTis returned - If comment ID or post ID specified in the path are queried successfully
200 OKis returned