-
Notifications
You must be signed in to change notification settings - Fork 0
Backend Routes
PavelAparcana edited this page Nov 11, 2019
·
2 revisions
-
Get /- StaticPagesController#root
-
GET /api/users- returns all users -
GET /api/users/:user_id- returns a specific users -
POST /api/users- creates up a user -
PATCH /api/users/:user_id- edits a specific user information
-
POST /api/session- sign in -
DELETE /api/session- sign out
-
GET /api/images- returns all images from users that the current user follows -
GET /api/users/:user_id- returns all images of a specific user -
GET /api/images/:image_id- returns a specific image -
POST /api/images- creates a new image -
PATCH /api/images/:image_id- edits a post -
DELETE /api/images/:image_id- deletes a specific image
-
POST /api/images/:image_id- creates a comment -
DELETE /comments/:comment_id- deletes a comment
-
POST /api/images/:image_id/likes- like an image -
DELETE /api/images/:image_id/likes/:like_id- unlike an image
-
POST /api/followers- follow a user -
DELETE /api/followers/:follower_id- unfollow a user