-
Notifications
You must be signed in to change notification settings - Fork 0
Backend Routes
Matthew Moe edited this page Oct 8, 2018
·
4 revisions
GET StaticPagesController#root
-
GET /api/users/:id
- returns users information and photos (profile page) -
POST /api/users
- create a new user
-
POST /api/session
- sign in -
DELETE /api/session
- sign out
-
GET /api/photos
- photos index, possibly home feed (might include /:uid) -
GET /api/photos/:p_id
- one photo index page displaying all its information -
POST /api/photos
- upload a photo -
DELETE /api/photos/:p_id
- delete a photo -
PATCH /api/photos/:p_id
- update a photo's information
-
GET /api/comments
- return relevant comments (filtered bydata
/params
) -
GET /api/comments/:id
- returns comment -
POST /api/photos/:p_id/comments
- displays photos comments, and allow for commenting -
PATCH /api/comments:id
- edit a comment -
DELETE /api/photos/:p_id/comments
- delete a comment on current p_id
POST /api/photos/:photo_id/likes
- like a photo
DELETE /api/photos/:photo_id/likes
- unlike a photo