diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-28 20:09:09 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-29 02:32:26 +0900 |
| commit | daaf81ae931654e20f882fbc6bbc4a02cbfc0273 (patch) | |
| tree | 2d0eb7c9f40e28a4295dc1065c80d5d891a8995a /openapi.yaml | |
| parent | 0b90018afbd438d61db7b41e5c3ea41cbb563bfe (diff) | |
| download | iosdc-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.yaml | 33 |
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: |
