-
Notifications
You must be signed in to change notification settings - Fork 0
BackEnd Routes
Sadman255 edited this page Dec 17, 2019
·
3 revisions
. GET / StaticPagesController#root
-
GET /api/users/- returns all users' information -
GET /api/users/id- returns a specific user's information -
POST /api/users- sign up
-
POST /api/session- log in -
DELETE /api/session- log out
-
GET /api/images/id-returns all images from the user the current user is following -
GET /api/users/:id/images/id-returns all images from a specific user -
GET /api/images/id-returns a specific image's information. -
POST /api/images/-posts an image -
PATCH /api/images/id-edits a specific image -
DELETE /api/images/id-deletes a specific image
-
POST /api/comments-creates a comment -
PATCH /api/comments/id-edits a comment -
DELETE /api/comments/id-deletes a comment
-
POST /api/likes/id-likes an image -
DELETE /api/likes/id-dislikes an image
-
POST /api/follows/id-follows an user -
DELETE /api/follows/id-unfollows an user