-
Notifications
You must be signed in to change notification settings - Fork 0
API Documentation
Tran Le edited this page Apr 26, 2021
·
6 revisions
This web app uses the following API routes to dynamically update the page to create a single-page-app-like feel for the user for specific features.
- A user can sign up for an account.
POST /api/users
- A user can log in, log out, or stay logged in.
GET /api/sessionPOST /api/sessionDELETE /api/session
- A logged in user may view photos, add, edit, or delete a photo uploaded on their account.
-
GET /api/explore?? GET /api/photosGET /api/photos/:idPOST /api/photosPUT /api/photos/:idDELETE /api/photos/:id
-
- A logged in user may view, add, edit, or delete a photo album.
GET /api/users/:id/albumsGET /api/albums/:idPOST /api/users/:id/albumsPUT /api/albums/:idDELETE /api/albums/:id
- A logged in user may add, edit, or delete a comment they made on a photo.
POST /api/photos/:id/commentPUT /api/comment/:idDELETE /api/comment/:id