|
|
|
[TOC]
|
|
|
|
[[_TOC_]]
|
|
|
|
|
|
|
|
## New Challenge
|
|
|
|
|
|
|
|
> With this endpoint user can create a new challenge room. After game room has been successfully created, user is granted title `GAMEMASTER` and receives the challenge room joining `challengeRoomCode` and a `JWT TOKEN`. With this token the `GAMEMASTER` can be identified and it prevents other users from disguising as the `GAMEMASTER`.
|
|
|
|
| Method | Route | Content type | Authentication |
|
|
|
|
|--------|-------|--------------|----------------|
|
|
|
|
| POST | /challenge/new | `application/json` | No |
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary><b>Required Body</b></summary>
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
challengeName: roomName,
|
|
|
|
challengeDuration: time,
|
|
|
|
challengeStartDelay: delay,
|
|
|
|
challengeTasks: challenges,
|
|
|
|
}
|
|
|
|
```
|
|
|
|
</details>
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## Join Challenge
|
|
|
|
|
|
|
|
## Exit Challenge
|
| ... | ... | |
| ... | ... | |