Implemented leaving a gamenight on the server/database side
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user