-
Notifications
You must be signed in to change notification settings - Fork 0
Backend Routes
Dan Lay edited this page Oct 5, 2022
·
3 revisions
-
GET /
-StaticPagesController#root
session
-
POST /api/session
- log in a user -
DELETE /api/session
- log out a user
users
-
GET /api/users
- get all users -
GET /api/users/:userId
- get a single user -
POST /api/users
- sign up a new user -
PATCH /api/users/:userId
- edit a user -
DELETE /api/users/:userId
- delete a user
videos
-
GET /api/videos
- get all videos -
GET /api/videos/:videoId
- get a single video -
POST /api/videos
- create a new video -
PATCH /api/videos/:videoId
- edit a video -
DELETE /api/videos/:videoId
- remove a video
comments
-
POST /api/comments
- create comment for a video -
POST /api/comments/:commentId
- create reply for a comment -
PATCH /api/comments/:commentId
- edit a comment -
DELETE /api/comments/:commentId
- delete a comment
feelings
-
POST /api/videos/:videoId/feelings
- create feeling for a video -
POST /api/comments/:commentId/feelings
- create feeling for a comment -
PATCH /api/videos/:videoId/feelings/:feelingsId
- edit a feeling for a video -
PATCH /api/comments/:commentId/feelings/:feelingsId
- edit a feeling for a comment -
DELETE /api/videos/:videoId/feelings/feelingsId
- delete a feeling for a video -
DELETE /api/comments/:commentId/feelings.feelingsId
- delete a feeling for a comment