-
Notifications
You must be signed in to change notification settings - Fork 1
Backend Routes
lee025 edited this page Jan 6, 2020
·
1 revision
-
GET /api/users/:id- Return User Info (Profile) -
POST /api/users- Sign Up -
PATCH /api/users/:id- Edit a User
-
POST /api/session- Log In -
DELETE /api/session- Log Out
-
GET /api/videos- returns relevant video (filtered by data/params) -
GET /api/videos/:id- returns relevant video -
POST /api/videos- Create video -
DELETE /api/videos/:id- Delete video
-
GET /api/videos/:video_id- returns all Likes for a video -
POST /api/videos/:video_id- Create a Like for a video -
DELETE /api/videos/:video_id/likes/:id- Delete a Like for a video -
GET /api/videos/:video_id/comments- returns all Likes for Comments for a video -
POST /api/videos/:video_id- Create a Like on Comment on video -
DELETE /api/videos/:video_id/comments/:id- Delete Like on Comment on video
-
GET /api/comments/:video_id:- Returns all comments for a video -
POST /api/comments- Create a comment on a video -
DELETE /api/comments/:id- Delete a comment