API Documentation
adamLovettApps edited this page May 20, 2021
·
1 revision
A logged in user can comment on photos and edit and delete their own comments.
- POST /api/photos/:id/comment
- PUT /api/photos/:id/comment/:commentId
- DELETE /api/photos/:id/comment/:commentId
A user can sign up for an account
- POST /api/users
A registered user can sign in to their account, sign out of their account, and have their session restored when they return to the site.
- POST /api/session/
- DELETE /api/session/
- GET /api/session
A logged in user can favorite and unfavorite photos.
- POST /api/photos/:id/favorite
- DELETE /api/photos/:id/favorite
A logged in user can follow other users.
- POST /api/users/:id/:followId
- DELETE /api/users/:id/:followId
A logged in user can add and remove tags from their photos.
- POST /api/photos/:id/tag/
- DELETE /api/photos/:id/tag/:tagId