aboutsummaryrefslogtreecommitdiffhomepage
path: root/openapi.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'openapi.yaml')
-rw-r--r--openapi.yaml33
1 files changed, 33 insertions, 0 deletions
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: