API Documentation - adamLovettApps/solo-project-0521 GitHub Wiki
API Routes
Comments on Photos
A logged in user can comment on photos and edit and delete their own comments.
Routes
- POST /api/photos/:id/comment
- PUT /api/photos/:id/comment/:commentId
- DELETE /api/photos/:id/comment/:commentId
Sign Up
A user can sign up for an account
Routes
- POST /api/users
Sign In/Sign Out/Restore Session
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.
Routes
- POST /api/session/
- DELETE /api/session/
- GET /api/session
Favorite Photos
A logged in user can favorite and unfavorite photos.
Routes
- POST /api/photos/:id/favorite
- DELETE /api/photos/:id/favorite
Follow Users
A logged in user can follow other users.
Routes
- POST /api/users/:id/:followId
- DELETE /api/users/:id/:followId
Tags on Photos
A logged in user can add and remove tags from their photos.
Routes
- POST /api/photos/:id/tag/
- DELETE /api/photos/:id/tag/:tagId