Skip to content

Likes API

Mustafa Khairullah edited this page Mar 29, 2021 · 20 revisions

Endpoints

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

Response Code

  • If the user is unauthorized 403 FORBIDDEN is returned
  • If no specific author ID or post ID is specified '400 BAD_REQUEST' is returned
  • If comment ID or post ID specified in the path are queried successfully '200 OK' is returned

Clone this wiki locally