Backend Routes
GilBu edited this page Jun 23, 2020
·
6 revisions
-
GET /
StaticPagesController#root
-
POST /api/users
- create new user -
GET /api/users/:id
- retrieve information about user - wallet, game library -
PATCH /api/users/:id
- give game key to user
-
POST /api/session
- log in -
DELETE /api/session
- log out
-
GET /api/games
- get list of all games -
GET /api/games/:id
- get information on specific game
-
POST /api/shopping_carts
- create new shopping cart -
DELETE /api/shopping_carts
- delete shopping cart, get id of cart from current user
-
POST /api/carts
- add game to shopping cart -
DELETE /api/cart/:id
- remove game from shopping cart