Implemented leaving a gamenight on the server/database side

This commit is contained in:
2025-06-15 19:11:26 +02:00
parent db6f55bc47
commit d11e31149b
5 changed files with 49 additions and 3 deletions

View File

@@ -129,6 +129,19 @@ paths:
$ref: '#/components/requestBodies/JoinGamenight'
security:
- JWT-Auth: []
/leave:
post:
responses:
'200':
description: OK
'401':
$ref: '#/components/responses/FailureResponse'
'422':
$ref: '#/components/responses/FailureResponse'
requestBody:
$ref: '#/components/requestBodies/LeaveGamenight'
security:
- JWT-Auth: []
components:
schemas:
@@ -280,6 +293,11 @@ components:
application/json:
schema:
$ref: '#/components/schemas/GamenightId'
LeaveGamenight:
content:
application/json:
schema:
$ref: '#/components/schemas/GamenightId'
responses:
TokenResponse:
description: Example response