Skip to content

Comments API

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

Endpoints

GET: author/<str:author_id>/posts/<str:post_id>/comments : comments_object
Will retrieve all the comments for a specific Post ID supplied in the path

POST: author/<str:author_id>/posts/<str:post_id>/comments : comments_object
Will create a comment on a given Post ID specified in the path

Response Code

  • On creation of a post 201 CREATED is returned

Clone this wiki locally