Skip to content

Comments API

Fraser Redford edited this page Mar 29, 2021 · 10 revisions

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