DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ref: 505c53d2fdf30e7b9ac2049a5cb2f2b6bf4b62f3 deck-builder/sdbapi/README.md -rw-r--r-- 866 bytes
505c53d2Jonni Liljamo docs(sdbapi): get_forming > all_forming 1 year, 8 months ago

#Deck Builder API

#Deployment

Configure SDBAPI_JWT_SECRET in docker-compose.yaml to be randomized.

#API Doc

Paths may change in the future.

path action who can
GET /info get API info public
- - -
POST /user/register register a user public
POST /user/token get the token of a user, aka login public
GET /user/:id get generic user info public
GET /user/_/:id get private user info id owner
- - -
GET /game/:id get game info registered users (subject to change)
GET /game/all_forming get all games that are forming registered users
POST /game/create create a game registered users
PATCH /game/:id/state change the state of a game only the game creator, aka P1
GET /game/for_user/:id get all games for a user id owner (subject to change)