fixed game creation to match server code.
Signed-off-by: Adrian Gunnar Lauterer <adriangl@pvv.ntnu.no>
This commit is contained in:
parent
583e941b6c
commit
c169b97a00
22
openapi.yaml
22
openapi.yaml
|
@ -17,9 +17,8 @@ paths:
|
||||||
description: Unique list of players to join the game. (Length of 2-4)
|
description: Unique list of players to join the game. (Length of 2-4)
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: array
|
$ref: '#/components/schemas/NewGameOptionsNew'
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Successful operation
|
description: Successful operation
|
||||||
|
@ -30,11 +29,10 @@ paths:
|
||||||
'400':
|
'400':
|
||||||
description: Invalid input
|
description: Invalid input
|
||||||
|
|
||||||
|
|
||||||
/game/{gameId}:
|
/game/{gameId}:
|
||||||
get:
|
get:
|
||||||
summary: Find pet by ID
|
summary: see the game
|
||||||
description: Returns a single pet
|
description: retunrs the game state.
|
||||||
operationId: getGameById
|
operationId: getGameById
|
||||||
parameters:
|
parameters:
|
||||||
- name: gameId
|
- name: gameId
|
||||||
|
@ -65,7 +63,7 @@ paths:
|
||||||
parameters:
|
parameters:
|
||||||
- name: gameId
|
- name: gameId
|
||||||
in: path
|
in: path
|
||||||
description: ID of pet that needs to be updated
|
description: ID of game that needs to be updated
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
|
@ -205,6 +203,16 @@ components:
|
||||||
patternLine:
|
patternLine:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
PlayerName:
|
||||||
|
type: string
|
||||||
|
NewGameOptionsNew:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
player_names:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/PlayerName'
|
||||||
|
|
||||||
GameResponse:
|
GameResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
Loading…
Reference in New Issue