Skip to content

Instantly share code, notes, and snippets.

@patrickbrophy
Created March 5, 2023 05:39
Show Gist options
  • Save patrickbrophy/a7b765fe47bf21e2485e79de12c96619 to your computer and use it in GitHub Desktop.
Save patrickbrophy/a7b765fe47bf21e2485e79de12c96619 to your computer and use it in GitHub Desktop.
madhacksbackend-api

API Docs

POST /register

Request Body
{
  "username": "...",
  "password": "..."
}

Response

{
  "email": "...",
  id: 420
}

POST /login Request Body

{
  "username": "...",
  "password": "..."
}

Response

{
  "email": "...",
  id: 420
}

GET /{username}/followers

Response

["patrick", "pratham", "ishaan", ...]

POST /follow/{follower}/{followed}

Response

"OK"

POST /unfollow/{follower}/{followed}

Response

"OK"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment