-
Notifications
You must be signed in to change notification settings - Fork 0
backend routes
Jerry Park edited this page May 13, 2022
·
4 revisions
-
GET /
-StaticPagesController#root
-
GET /api/users
- returns the user information of displayed chirps and for the User Search feature -
POST /api/users
- sign up
-
POST /api/session
- log in -
DELETE /api/session
- log out
-
GET /api/posts
- returns relevant posts (filtered bydata
/params
) -
GET /api/posts/:id
- returns post -
POST /api/posts
- creates a post -
PATCH /api/posts/:id
- edit a post -
DELETE /api/posts/:id
- remove a post
-
POST /api/comments
- create a comment -
PATCH /api/comments/:id
- edit a comment
-
POST /api/votes
- vote for a post -
DELETE /api/votes/:id
- unvote the post