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: