fixed game creation to match server code.

Signed-off-by: Adrian Gunnar Lauterer <adriangl@pvv.ntnu.no>
pull/4/head
Adrian Gunnar Lauterer 2024-02-14 20:25:36 +01:00
parent 583e941b6c
commit c169b97a00
1 changed files with 16 additions and 8 deletions

View File

@ -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: