aboutsummaryrefslogtreecommitdiffhomepage
path: root/openapi.yaml
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-28 20:09:09 +0900
committernsfisis <nsfisis@gmail.com>2024-07-29 02:32:26 +0900
commitdaaf81ae931654e20f882fbc6bbc4a02cbfc0273 (patch)
tree2d0eb7c9f40e28a4295dc1065c80d5d891a8995a /openapi.yaml
parent0b90018afbd438d61db7b41e5c3ea41cbb563bfe (diff)
downloadiosdc-japan-2024-albatross-daaf81ae931654e20f882fbc6bbc4a02cbfc0273.tar.gz
iosdc-japan-2024-albatross-daaf81ae931654e20f882fbc6bbc4a02cbfc0273.tar.zst
iosdc-japan-2024-albatross-daaf81ae931654e20f882fbc6bbc4a02cbfc0273.zip
feat(backend): partially implement gaming
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: