Added owning games and not willing to travel with them.
This commit is contained in:
@@ -6,7 +6,7 @@ info:
|
||||
name: Dennis Brentjes
|
||||
email: dennis@brentj.es
|
||||
url: 'https://brentj.es'
|
||||
description: Api specifaction for a Gamenight server
|
||||
description: Api specification for a Gamenight server
|
||||
license:
|
||||
name: MIT
|
||||
servers:
|
||||
@@ -192,7 +192,7 @@ paths:
|
||||
post:
|
||||
responses:
|
||||
'200':
|
||||
description: "OK"
|
||||
$ref: '#/components/responses/GameIdResponse'
|
||||
'401':
|
||||
$ref: '#/components/responses/FailureResponse'
|
||||
'422':
|
||||
@@ -269,7 +269,6 @@ paths:
|
||||
post:
|
||||
responses:
|
||||
'200':
|
||||
description: 'Ok'
|
||||
$ref: '#/components/responses/LocationIdResponse'
|
||||
'401':
|
||||
$ref: '#/components/responses/FailureResponse'
|
||||
@@ -479,6 +478,15 @@ components:
|
||||
required:
|
||||
- id
|
||||
- name
|
||||
OwnGameRequestBody:
|
||||
type: object
|
||||
properties:
|
||||
game_id:
|
||||
type: string
|
||||
location_id:
|
||||
type: string
|
||||
required:
|
||||
- game_id
|
||||
GameIdsResponse:
|
||||
type: array
|
||||
items:
|
||||
@@ -586,7 +594,7 @@ components:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/GameId'
|
||||
$ref: '#/components/schemas/OwnGameRequestBody'
|
||||
DisownGameRequest:
|
||||
content:
|
||||
application/json:
|
||||
@@ -679,6 +687,12 @@ components:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Game'
|
||||
GameIdResponse:
|
||||
description: a game id
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/GameId'
|
||||
GameIdsResponse:
|
||||
description: A list of game ids.
|
||||
content:
|
||||
|
||||
Reference in New Issue
Block a user