aboutsummaryrefslogtreecommitdiffhomepage
path: root/openapi.yaml
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-05 02:27:53 +0900
committernsfisis <nsfisis@gmail.com>2024-08-05 03:02:18 +0900
commit5988360d8cf0fc0028c6db1c82afc1e313ba0513 (patch)
tree08b9e5126ff2256c64e097c5bfb1024278e33981 /openapi.yaml
parent2705f09f5c52b25af07a1d7ccec546de68ff32e9 (diff)
downloadphperkaigi-2025-albatross-5988360d8cf0fc0028c6db1c82afc1e313ba0513.tar.gz
phperkaigi-2025-albatross-5988360d8cf0fc0028c6db1c82afc1e313ba0513.tar.zst
phperkaigi-2025-albatross-5988360d8cf0fc0028c6db1c82afc1e313ba0513.zip
feat(backend): return `game_type` in API response
Diffstat (limited to 'openapi.yaml')
-rw-r--r--openapi.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/openapi.yaml b/openapi.yaml
index 2c91ad1..2e18728 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -185,6 +185,12 @@ components:
game_id:
type: integer
example: 1
+ game_type:
+ type: string
+ example: "1v1"
+ enum:
+ - 1v1
+ - multiplayer
state:
type: string
example: "closed"
@@ -209,6 +215,7 @@ components:
$ref: '#/components/schemas/Problem'
required:
- game_id
+ - game_type
- state
- display_name
- duration_seconds