diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-17 19:14:32 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-17 19:23:56 +0900 |
| commit | faff26b13da82747fb0efdb6bf1312a9b14d3916 (patch) | |
| tree | eb510dc3f92bdb916ff5bdc1191763ff48cf4332 /openapi | |
| parent | 4615ca9b8b1989d315ae2322556697b97161b97b (diff) | |
| download | iosdc-japan-2025-albatross-faff26b13da82747fb0efdb6bf1312a9b14d3916.tar.gz iosdc-japan-2025-albatross-faff26b13da82747fb0efdb6bf1312a9b14d3916.tar.zst iosdc-japan-2025-albatross-faff26b13da82747fb0efdb6bf1312a9b14d3916.zip | |
feat(backend,frontend): implement tournament page
Diffstat (limited to 'openapi')
| -rw-r--r-- | openapi/api-server.yaml | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/openapi/api-server.yaml b/openapi/api-server.yaml index 098832b..8709db2 100644 --- a/openapi/api-server.yaml +++ b/openapi/api-server.yaml @@ -222,6 +222,55 @@ paths: $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' + /tournament: + get: + operationId: getTournament + summary: Get tournament bracket data + parameters: + - $ref: '#/components/parameters/header_authorization' + - in: query + name: game1 + schema: + type: integer + required: true + - in: query + name: game2 + schema: + type: integer + required: true + - in: query + name: game3 + schema: + type: integer + required: true + - in: query + name: game4 + schema: + type: integer + required: true + - in: query + name: game5 + schema: + type: integer + required: true + responses: + '200': + description: Tournament data + content: + application/json: + schema: + type: object + properties: + tournament: + $ref: '#/components/schemas/Tournament' + required: + - tournament + '401': + $ref: '#/components/responses/Unauthorized' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' components: parameters: header_authorization: @@ -419,3 +468,33 @@ components: - score - submitted_at - code + Tournament: + type: object + properties: + matches: + type: array + items: + $ref: '#/components/schemas/TournamentMatch' + required: + - matches + TournamentMatch: + type: object + properties: + game_id: + type: integer + example: 1 + player1: + $ref: '#/components/schemas/User' + player2: + $ref: '#/components/schemas/User' + player1_score: + type: integer + example: 1 + player2_score: + type: integer + example: 1 + winner: + type: integer + example: 1 + required: + - game_id |
