|
|
|
|
|
|
|
### GET uri/api/rounds/:roundId
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* roundId (String, must be a valid MongoDB ID)
|
|
|
|
|
|
|
|
Returns the round with id = roundId on the form:
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"_id": (String, valid MongoID),
|
|
|
|
"tournamentId": String, valid MongoID),
|
|
|
|
"playerId": (String, valid MongoID),
|
|
|
|
"gameId": (String, valid MongoID),
|
|
|
|
"name": (String),
|
|
|
|
"scoreValue": (Int),
|
|
|
|
"roundNr": (Int),
|
|
|
|
"hasPlayed": (Boolean),
|
|
|
|
"deadlineDate": (String, valid date),
|
|
|
|
"tournamentPoints": (Int)
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### POST url/api/tournament/join
|
|
|
|
|
|
|
|
Joins the oldest tournament stil active and on round 1.
|
|
|
|
|
|
|
|
body:
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"playerId": (String, must be a valid MongoDB ID)
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|