API Routes - goosey-goose/CODENAME-KETCHUP GitHub Wiki
This web app uses the following API routes to dynamically update pages to create a single-page-app feel for the user for specific features.
Reviews
A logged-in user may submit reviews for TV shows and have the ability to edit, update, and delete without causing a refresh or redirect.
- POST /shows/:id/(\d+)/reviews
- PUT or PATCH /shows/reviews/:id(\d+)
- DELETE /shows/reviews/:id(\d+)
Comments (Bonus)
A logged-in user may submit comments to reviews for TV shows and have the ability to edit, update, and delete without causing a refresh or redirect.
- POST /reviews/:id(\d+)/comments
- PUT or PATCH /comments/:id(\d+)
- DELETE /comments/:id(\d+)
Likes (Bonus)
A logged-in user can like a review or comment with visible confirmation without causing a refresh or redirect.
- POST /api/reviews/:id/likes
- POST /api/comments/:id/likes
- DELETE /api/reviews/:id/likes
- DELETE /api/comments/:id/likes