Open woollyblanket opened 1 year ago
I don't think I shouldn't use a new verb here. [POST] /games/:id/start
should maybe be [POST] /games
. That should create a new game. Creating a game should be analogous to starting a new game, I think... or maybe not, that mightn't be RESTful anymore... I need to think more about the proper endpoint to use
Create a new endpoint, probably something like
/games/:id/start
. This will start the game flow. The flow will look something like this:/cards/:id/play
. There should be some validation here to make sure that the player can only play a card that's in their deckRewards could be: