Skip to content

API Routes

Eric Ramsay edited this page Mar 5, 2021 · 7 revisions

1. Adding/Updating a user's game review

POST /api/games/:id/review (add new review) PUT /api/games/:id/review (update review content or like status) DELETE /api/games/:id/review (delete review)

2. Add/Update game in User's games library

(occurs when user selects option from dropdown below game card (i.e. want to play, playing, played)

POST /api/users/:id/library/ (add game to user's game library) PUT /api/users/:id/library/ (update status of a game in user's game library, i.e. playing >> played) DELETE /api/users/:id/library/ (remove a game from user's game library)

Clone this wiki locally