Skip to content

Posts API

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

Will return up to 5 comments within Post object and is paginated with a default page size of 50

Endpoints

GET: author/<str:author_id>/posts/ : posts_object
Will return all posts by a specified author ID in path

POST: author/<str:author_id>/posts/ : posts_object
Will create a new post for author ID specified in path

GET: author/<str:author_id>/posts/<str:id>/ : posts_object
Will retrieve the specific post given post ID for the specific author ID given

POST: author/<str:author_id>/posts/<str:id>/ : posts_object
Will allow for an update to be performed on the specific post's data given

DELETE: author/<str:author_id>/posts/<str:id>/ : posts_object
Will allow deletion of the specific post by author of the post

PUT: author/<str:author_id>/posts/<str:id>/ : posts_object
Will create a post given the specific author ID and post ID

Clone this wiki locally