From daaf81ae931654e20f882fbc6bbc4a02cbfc0273 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 28 Jul 2024 20:09:09 +0900 Subject: feat(backend): partially implement gaming --- openapi.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'openapi.yaml') diff --git a/openapi.yaml b/openapi.yaml index 4360b21..3ee0dad 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -87,6 +87,39 @@ paths: example: "Forbidden operation" required: - message + /games/{game_id}: + get: + summary: Get a game + parameters: + - in: path + name: game_id + schema: + type: integer + required: true + - in: header + name: Authorization + schema: + type: string + required: true + responses: + '200': + description: A game + content: + application/json: + schema: + $ref: '#/components/schemas/Game' + '403': + description: Forbidden + content: + application/json: + schema: + type: object + properties: + message: + type: string + example: "Forbidden operation" + required: + - message components: schemas: JwtPayload: -- cgit v1.2.3-70-g09d2