|
|
[[_TOC_]]
|
|
[[_TOC_]]
|
|
|
|
|
|
|
|
## New Challenge
|
|
### 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`.
|
|
> 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`.
|
|
|
|
|
|
| ... | @@ -74,7 +74,7 @@ |
... | @@ -74,7 +74,7 @@ |
|
|
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
|
|
## Join Challenge
|
|
### Join Challenge
|
|
|
|
|
|
|
|
> User can join a challenge room by using the challenge room's `CODE` shared by the `GAMEMASTER`. After validating the joining `CODE` user receives JWT `TOKEN` titled `PLAYER` to proceed into the challenge game room. Header payload must include desired `PLAYER` `userName`.
|
|
> User can join a challenge room by using the challenge room's `CODE` shared by the `GAMEMASTER`. After validating the joining `CODE` user receives JWT `TOKEN` titled `PLAYER` to proceed into the challenge game room. Header payload must include desired `PLAYER` `userName`.
|
|
|
|
|
|
| ... | @@ -165,7 +165,7 @@ |
... | @@ -165,7 +165,7 @@ |
|
|
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
|
|
## Exit Challenge
|
|
### Exit Challenge
|
|
|
|
|
|
|
|
> User can disconnect by using this API route. User's data will be deleted based on game session status where `JWT TOKEN` is connected.
|
|
> User can disconnect by using this API route. User's data will be deleted based on game session status where `JWT TOKEN` is connected.
|
|
|
|
|
|
| ... | @@ -224,7 +224,7 @@ true |
... | @@ -224,7 +224,7 @@ true |
|
|
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
|
|
## Rejoin Challenge
|
|
### Rejoin Challenge
|
|
|
|
|
|
|
|
> User can rejoin existing game with valid and existing `JWT TOKEN`.<br>`JWT TOKEN` is received when using [Joining the challenge room](/wimma-lab-2022/iotitude/source-backend/-/wikis/API/REST/Join%20Challenge) or [Create new Challenge](/wimma-lab-2022/iotitude/source-backend/-/wikis/API/REST/New%20Challenge) REST API routes
|
|
> User can rejoin existing game with valid and existing `JWT TOKEN`.<br>`JWT TOKEN` is received when using [Joining the challenge room](/wimma-lab-2022/iotitude/source-backend/-/wikis/API/REST/Join%20Challenge) or [Create new Challenge](/wimma-lab-2022/iotitude/source-backend/-/wikis/API/REST/New%20Challenge) REST API routes
|
|
|
|
|
|
| ... | |
... | |
| ... | | ... | |