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
24
openapi.yaml
24
openapi.yaml
|
@ -17,9 +17,8 @@ paths:
|
|||
description: Unique list of players to join the game. (Length of 2-4)
|
||||
required: true
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
$ref: '#/components/schemas/NewGameOptionsNew'
|
||||
|
||||
responses:
|
||||
'200':
|
||||
description: Successful operation
|
||||
|
@ -29,12 +28,11 @@ paths:
|
|||
$ref: '#/components/schemas/GameResponse'
|
||||
'400':
|
||||
description: Invalid input
|
||||
|
||||
|
||||
|
||||
/game/{gameId}:
|
||||
get:
|
||||
summary: Find pet by ID
|
||||
description: Returns a single pet
|
||||
summary: see the game
|
||||
description: retunrs the game state.
|
||||
operationId: getGameById
|
||||
parameters:
|
||||
- name: gameId
|
||||
|
@ -65,7 +63,7 @@ paths:
|
|||
parameters:
|
||||
- name: gameId
|
||||
in: path
|
||||
description: ID of pet that needs to be updated
|
||||
description: ID of game that needs to be updated
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
|
@ -205,6 +203,16 @@ components:
|
|||
patternLine:
|
||||
type: integer
|
||||
format: int32
|
||||
PlayerName:
|
||||
type: string
|
||||
NewGameOptionsNew:
|
||||
type: object
|
||||
properties:
|
||||
player_names:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/PlayerName'
|
||||
|
||||
GameResponse:
|
||||
type: object
|
||||
properties:
|
||||
|
|
Loading…
Reference in New Issue