DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ref: f32dae805d5243fdf506b80c5e8d5758c6ce1ab2 deck-builder/.archived/sdbapi/README.md -rw-r--r-- 938 bytes
f32dae80Jonni Liljamo feat(client): remove belly dep, disable UI for rework 1 year, 7 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/my_games get all own games derived from auth header
POST /game/:id/join join a game registered user who is not the game creator