-
Notifications
You must be signed in to change notification settings - Fork 0
backend routes
yangc95 edited this page Mar 17, 2021
·
5 revisions
-
GET /
StaticPagesController#root
-
GET /api/users
- returns user info of pins, boards, and follows for a User -
POST /api/users
- sign up
-
GET /api/session
- log in -
POST /api/session
- log out
-
GET /api/pins
- returns relevant pins (filtered bydata
/params
) -
GET /api/pins/:id
- returns a pin -
POST /api/pins
- creates a pin -
PATCH /api/pins/:id
- edit a pin -
DELETE /api/pins/:id
- remove a pin
-
GET /api/boards
- returns user boards -
GET /api/boards/:id
- returns a board with pins -
POST /api/boards
- creates a board -
PATCH /api/boards/:id
- edit a board -
DELETE /api/boards/:id
- remove a board
-
POST /api/follows
- creates a follow -
DELETE /api/follows/:id
- remove a follow