| ... | @@ -167,29 +167,57 @@ |
... | @@ -167,29 +167,57 @@ |
|
|
|
|
|
|
|
## Exit Challenge
|
|
## Exit Challenge
|
|
|
|
|
|
|
|
> Desc
|
|
> User can disconnect by using this API route. User's data will be deleted based on game session status where `JWT TOKEN` is connected.
|
|
|
|
|
|
|
|
| Method | Route | Content type | Authentication |
|
|
| Method | Route | Content type | Authentication |
|
|
|
|--------|-------|--------------|----------------|
|
|
|--------|-------|--------------|----------------|
|
|
|
| POST | route | `application/json` | No |
|
|
| GET | /challenge/exit | `application/json` | bearer token |
|
|
|
|
|
|
|
|
<details>
|
|
<details><summary><b>Example Responses</b></summary>
|
|
|
<summary><b>Required Body</b></summary>
|
|
|
|
|
|
|
|
|
|
```json
|
|
```json
|
|
|
Body
|
|
true
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
</details>
|
|
```json
|
|
|
|
{
|
|
|
|
"statusCode": 401,
|
|
|
|
"error": "Unauthorized",
|
|
|
|
"message": "Missing authentication"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
<details><summary><b>Example Responses</b></summary>
|
|
```json
|
|
|
|
{
|
|
|
|
"statusCode": 401,
|
|
|
|
"error": "Unauthorized",
|
|
|
|
"message": "Invalid token signature",
|
|
|
|
"attributes": {
|
|
|
|
"error": "Invalid token signature"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
```json
|
|
```json
|
|
|
Success
|
|
{
|
|
|
|
"statusCode": 401,
|
|
|
|
"error": "Unauthorized",
|
|
|
|
"message": "Invalid token missing header",
|
|
|
|
"attributes": {
|
|
|
|
"error": "Invalid token missing header"
|
|
|
|
}
|
|
|
|
}
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
```json
|
|
```json
|
|
|
Error
|
|
{
|
|
|
|
"statusCode": 401,
|
|
|
|
"error": "Unauthorized",
|
|
|
|
"message": "Invalid token payload",
|
|
|
|
"attributes": {
|
|
|
|
"error": "Invalid token payload"
|
|
|
|
}
|
|
|
|
}
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
</details>
|
|
</details>
|
| ... | |
... | |
| ... | | ... | |