Backend Routes - GilBu/modestpack GitHub Wiki
Backend Routes
HTML
GET / StaticPagesController#root
API Endpoints
users
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
session
POST /api/session - log in
DELETE /api/session - log out
games
GET /api/games - get list of all games
GET /api/games/:id - get information on specific game
shopping_carts
POST /api/shopping_carts - create new shopping cart
DELETE /api/shopping_carts - delete shopping cart, get id of cart from current user
cart
POST /api/carts - add game to shopping cart
DELETE /api/cart/:id - remove game from shopping cart