Skip to content

API Documentation

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

The following API endpoints can be used to access the Konnect server.

Register API

  1. POST will handle creating a user: api/auth/register

Login API

  1. POST will handle a user login: api/auth/login

Author API

  1. GET an author's profile by ID: author/<str:id>/
  2. POST update an author's profile: author/<str:id>/
  3. GET all author's on the server: authors

Post API

author/<str:author_id>/posts/

  1. GET will return all posts by a given author

  2. POST will create a new post for the given author: author/<str:author_id>/posts/

  3. GET will return a specific post by a given author: author/<str:author_id>/posts/<str:id>/

  4. POST will update a specific post by a given author: author/<str:author_id>/posts/<str:id>/

  5. DELETE will delete a specific post by a given author: author/<str:author_id>/posts/<str:id>/

  6. PUT will create a post for a specific post ID by a given author: author/<str:author_id>/posts/<str:id>/

Clone this wiki locally