Skip to content

Posts API

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

Endpoints

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

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

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

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

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

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

Clone this wiki locally