Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/specs/lichess-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,9 @@ paths:
/broadcast/{broadcastTournamentId}/players/{playerId}:
$ref: "./tags/broadcasts/broadcast-broadcastTournamentId-players-playerId.yaml"

/broadcast/{broadcastTournamentId}/teams/standings:
$ref: "./tags/broadcasts/broadcast-broadcastTournamentId-teams-standings.yaml"

/broadcast/{broadcastTournamentId}/edit:
$ref: "./tags/broadcasts/broadcast-broadcastTournamentId-edit.yaml"

Expand Down
6 changes: 1 addition & 5 deletions doc/specs/schemas/BroadcastGameEntry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ properties:
color:
$ref: "./GameColor.yaml"
points:
type: string
enum:
- "1"
- "1/2"
- "0"
$ref: "./BroadcastPointStr.yaml"
customPoints:
$ref: "./BroadcastCustomPoints.yaml"
ratingDiff:
Expand Down
5 changes: 5 additions & 0 deletions doc/specs/schemas/BroadcastPointStr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: string
enum:
- "1"
- "1/2"
- "0"
28 changes: 28 additions & 0 deletions doc/specs/schemas/BroadcastTeamLeaderboardEntry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
properties:
name:
type: string
description: "The name of the team"
mp:
type: number
description: "Total match points scored"
gp:
type: number
description: "Total game points scored"
averageRating:
type: integer
description: "The average rating of the team's players"
matches:
type: array
items:
$ref: "./BroadcastTeamPOVMatchEntry.yaml"
players:
type: array
description: "Players who have played for the team and their overall score"
items:
$ref: "./BroadcastPlayerEntry.yaml"
required:
- name
- mp
- gp
- matches
- players
18 changes: 18 additions & 0 deletions doc/specs/schemas/BroadcastTeamPOVMatchEntry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
type: object
properties:
roundId:
type: string
opponent:
type: string
description: "The name of the opposing team"
mp:
type: number
description: "Match points scored in this match"
gp:
type: number
description: "Game points scored in this match"
points:
$ref: "./BroadcastPointStr.yaml"
required:
- roundId
- opponent
2 changes: 0 additions & 2 deletions doc/specs/schemas/BroadcastTour.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ properties:
description:
type: string
description: "Full tournament description in markdown format, or in HTML if the html=1 query parameter is set."
leaderboard:
type: boolean
teamTable:
type: boolean
url:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
get:
operationId: broadcastTeamLeaderboardGet
summary: Get the team leaderboard of a broadcast
description: |
Get the team leaderboard of a broadcast tournament, if available.
tags:
- Broadcasts
security: []
parameters:
- in: path
name: broadcastTournamentId
description: The broadcast tournament ID
required: true
schema:
type: string
minLength: 8
maxLength: 8
responses:
"200":
description: The team leaderboard
content:
application/json:
schema:
type: array
items:
$ref: "../../schemas/BroadcastTeamLeaderboardEntry.yaml"
"404":
description: Broadcast tournament not found