From b1a4e1902ec95a7587202a3a6563c63ecf5b6066 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Mon, 9 Dec 2024 08:32:30 +0100 Subject: [PATCH] broadcast players endpoint --- ...aderboardEntry.yaml => BroadcastPlayerEntry.yaml} | 6 ++++++ .../broadcast-broadcastTournamentId-leaderboard.yaml | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) rename doc/specs/schemas/{BroadcastLeaderboardEntry.yaml => BroadcastPlayerEntry.yaml} (77%) diff --git a/doc/specs/schemas/BroadcastLeaderboardEntry.yaml b/doc/specs/schemas/BroadcastPlayerEntry.yaml similarity index 77% rename from doc/specs/schemas/BroadcastLeaderboardEntry.yaml rename to doc/specs/schemas/BroadcastPlayerEntry.yaml index 546f3e2..04a0d3e 100644 --- a/doc/specs/schemas/BroadcastLeaderboardEntry.yaml +++ b/doc/specs/schemas/BroadcastPlayerEntry.yaml @@ -12,6 +12,12 @@ properties: rating: type: integer example: 2149 + ratingDiff: + type: integer + example: -5 + performance: + type: integer + example: 2138 title: type: string example: FM diff --git a/doc/specs/tags/broadcasts/broadcast-broadcastTournamentId-leaderboard.yaml b/doc/specs/tags/broadcasts/broadcast-broadcastTournamentId-leaderboard.yaml index b3cbda4..e97bb56 100644 --- a/doc/specs/tags/broadcasts/broadcast-broadcastTournamentId-leaderboard.yaml +++ b/doc/specs/tags/broadcasts/broadcast-broadcastTournamentId-leaderboard.yaml @@ -1,8 +1,8 @@ get: - operationId: broadcastLeaderboardGet - summary: Get a broadcast leaderboard + operationId: broadcastPlayersGet + summary: Get players of a broadcast description: | - Get the leaderboard of a broadcast tournament, if available. + Get the list of players of a broadcast tournament, if available. tags: - Broadcasts security: [] @@ -14,11 +14,11 @@ get: schema: type: string responses: - '200': - description: The broadcast leaderboard players + "200": + description: The broadcast players content: application/json: schema: type: array items: - $ref: '../../schemas/BroadcastLeaderboardEntry.yaml' + $ref: "../../schemas/BroadcastPlayerEntry.yaml"