API Documentation - Hieu-Ma/ggplays GitHub Wiki
API-Routes
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.
Reviews
- A logged in user may create a rating of a game without causing a refresh/redirect.
POST /api/games/:id/reviews/
- A logged in user may clear a rating of a game without causing a refresh/redirect.
DELETE /api/reviews/:id
Play Status
- A logged in user may choose a play status without causing a refresh/redirect.
POST /api/games/
- A logged in user may update their play status without causing a refresh/redirect.
PUT /api/games/:id/
- A logged in user may delete their play status without causing a refresh/redirect.
DELETE /api/games/:id/
Game Shelves
- A logged in user may load a currently existing game shelf without causing a refresh/redirect.
PUT /api/game-shelves/:id
- A logged in user may create a new game shelf or without causing a refresh/redirect.
POST /api/game-shelves/