forked from abramhindle/CMPUT404-project-socialdistribution
-
Notifications
You must be signed in to change notification settings - Fork 1
API Documentation
Fraser Redford edited this page Mar 29, 2021
·
43 revisions
The following API endpoints can be used to access the Konnect server.
-
POST will handle creating a user:
api/auth/register
-
POST will handle a user login:
api/auth/login
-
GET an author's profile by ID:
author/<str:id>/ -
POST update an author's profile:
author/<str:id>/ -
GET all author's on the server:
authors
-
GET will return all posts by a given author:
author/<str:author_id>/posts/ -
POST will create a new post for the given author:
author/<str:author_id>/posts/ -
GET will return a specific post by a given author:
author/<str:author_id>/posts/<str:id>/ -
POST will update a specific post by a given author:
author/<str:author_id>/posts/<str:id>/ -
DELETE will delete a specific post by a given author:
author/<str:author_id>/posts/<str:id>/ -
PUT will create a post for a specific post ID by a given author:
author/<str:author_id>/posts/<str:id>/