Adds own/disown game logic
This commit is contained in:
@@ -203,6 +203,44 @@ paths:
|
||||
$ref: '#/components/requestBodies/RenameGameRequest'
|
||||
security:
|
||||
- JWT-Auth: []
|
||||
/own:
|
||||
post:
|
||||
responses:
|
||||
'200':
|
||||
description: "OK"
|
||||
'401':
|
||||
$ref: '#/components/responses/FailureResponse'
|
||||
'422':
|
||||
$ref: '#/components/responses/FailureResponse'
|
||||
requestBody:
|
||||
$ref: '#/components/requestBodies/OwnGameRequest'
|
||||
security:
|
||||
- JWT-Auth: []
|
||||
/disown:
|
||||
post:
|
||||
responses:
|
||||
'200':
|
||||
description: "OK"
|
||||
'401':
|
||||
$ref: '#/components/responses/FailureResponse'
|
||||
'422':
|
||||
$ref: '#/components/responses/FailureResponse'
|
||||
requestBody:
|
||||
$ref: '#/components/requestBodies/DisownGameRequest'
|
||||
security:
|
||||
- JWT-Auth: []
|
||||
/owned_games:
|
||||
get:
|
||||
responses:
|
||||
'200':
|
||||
$ref: "#/components/responses/GameIdsResponse"
|
||||
'401':
|
||||
$ref: '#/components/responses/FailureResponse'
|
||||
'422':
|
||||
$ref: '#/components/responses/FailureResponse'
|
||||
security:
|
||||
- JWT-Auth: []
|
||||
|
||||
|
||||
|
||||
components:
|
||||
@@ -357,6 +395,11 @@ components:
|
||||
required:
|
||||
- id
|
||||
- name
|
||||
GameIdsResponse:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
|
||||
requestBodies:
|
||||
LoginRequest:
|
||||
content:
|
||||
@@ -413,6 +456,16 @@ components:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/RenameGameRequestBody'
|
||||
OwnGameRequest:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/GameId'
|
||||
DisownGameRequest:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/GameId'
|
||||
responses:
|
||||
TokenResponse:
|
||||
description: Example response
|
||||
@@ -466,6 +519,12 @@ components:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Game'
|
||||
GameIdsResponse:
|
||||
description: A list of game ids.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/GameIdsResponse'
|
||||
securitySchemes:
|
||||
JWT-Auth:
|
||||
type: http
|
||||
|
||||
Reference in New Issue
Block a user