-
Notifications
You must be signed in to change notification settings - Fork 0
Backend Routes
wxwang93 edited this page Apr 28, 2020
·
3 revisions
- GET/StaticPagesController#root
- POST /api/users - sign up
- GET /api/users/userId - returns the user page and its corresponding photos and albums
- POST /api/session - log in
- DELETE /api/session - log out
- GET /api/photos - returns relevant photos (filtered by data/params)
- GET /api/photos/:id - returns photo
- POST /api/photos - creates photo
- PATCH /api/photos/:id - edits a photo
- DELETE /api/chirps/:id - removes a photo
- GET /api/albums - returns relevant albums (filtered by data/params)
- GET /api/albums/:id - returns album
- POST /api/albums - creates an album
- PATCH /api/albums/:id - edits an album
- DELETE /api/albums/:id - removes an album
- POST /api/photos/:photo_id/comments - comment a photo
- PATCH /api/photos/:photo_id/comments - edits a comment
- DELETE /api/photos/:photo_id/comments - deletes a comment