Commit 21465ea5 authored by Johan Vervloet's avatar Johan Vervloet

Better route for proposed nobody along, and updated changelog. #106

parent f099f58c
Pipeline #127550309 passed with stages
in 4 minutes and 57 seconds
......@@ -2,8 +2,15 @@
## [1.0] - Unreleased
### Added
- Introduced `ScoreLineNumber`, got rid of 'dummy games', #129
- Log event time in the event store, #103
- Api documentation, #106.
### Changed
- Tried to bring more consistency to the API, #106.
## [0.5.1] - 2020-02-29
......
......@@ -268,7 +268,7 @@ This returns an object with the following properties:
* `dealer`: the player identifier of the current dealer
* `current_game`: the game number of the current game
* `playing_players`: player identifiers of players actually playing
(this is relevant with more than 4 players seated at the table). *TODO:* rename this key.
(this is relevant with more than 4 players seated at the table).
The properties of a score line, are:
......@@ -397,10 +397,8 @@ curl 'http://localhost:8080/api/table/05247d0d-60e0-4f7a-ac4a-337320348d4c/game/
### Proposing with nobody along
**TODO:** change this to nobody-along or something like that.
```
POST /api/table/{tableId}/game/{gameNumber}/proposeNobodyAlong
POST /api/table/{tableId}/game/{gameNumber}/nobody-along
```
### Logging a game
......
......@@ -170,7 +170,7 @@ final class TableApiController extends AbstractController
}
/**
* @Route("/api/table/{tableId}/game/{game}/proposeNobodyAlong", name="api.table.proposeNobodyAlong", methods="POST", options={"expose"=true})
* @Route("/api/table/{tableId}/game/{game}/nobody-along", name="api.table.proposeNobodyAlong", methods="POST", options={"expose"=true})
*/
public function proposeNobodyAlong(string $tableId, int $game): Response
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment