From c169b97a0012bac184c3d276c30269764057726a Mon Sep 17 00:00:00 2001 From: Adrian Gunnar Lauterer Date: Wed, 14 Feb 2024 20:25:36 +0100 Subject: [PATCH] fixed game creation to match server code. Signed-off-by: Adrian Gunnar Lauterer --- openapi.yaml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 0f085cc..0238c45 100644 --- a/openapi.yaml +++ b/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: