Skip to content

API Routes

Andrew edited this page Oct 8, 2021 · 5 revisions

API Documentation

/ (Home page)

  • Login to an existing account:
    • POST /login
  • Create a new user account:
    • POST /signup

/users

  • View one user:
    • GET /users/:id
      • Will also get the users followers, who the user follows, and all the users inks and canvases
  • Follow a user:
    • POST /users/:id/follow
  • Unfollow a user:
    • DELETE /users/:id/follow

/canvases

  • To view all the users canvases:
    • GET /users/:id
  • To create a new canvas:
    • POST /users/:id/new-canvas
  • To view 1 canvas of a user:
    • GET /users/:id/canvases/:id
  • To add 1 Ink to a new or existing canvas:
    • POST /canvases/:id

/inks

  • To view 1 specific Ink:
    • GET /inks/:id
  • To edit an existing ink:
    • PATCH /inks/:id
  • To delete an ink:
    • DELETE /inks/:id
  • To create a new ink:
    • POST /users/:id/new-ink

Clone this wiki locally