Skip to content

Commit

Permalink
Merge pull request #305 from allanjoseph98/division
Browse files Browse the repository at this point in the history
Document game export `division` parameter
  • Loading branch information
ornicar authored Jan 26, 2024
2 parents f83773b + 8fc00da commit e62d4b1
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions doc/specs/lichess-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,14 @@ paths:
schema:
type: boolean
default: true
- in: query
name: division
description: |
Plies which mark the beginning of the middlegame and endgame.
Only available in JSON
schema:
type: boolean
default: true
- in: query
name: literate
description: |
Expand Down Expand Up @@ -1126,6 +1134,14 @@ paths:
schema:
type: boolean
default: true
- in: query
name: division
description: |
Plies which mark the beginning of the middlegame and endgame.
Only available in JSON
schema:
type: boolean
default: false
- in: query
name: literate
description: |
Expand Down Expand Up @@ -1294,6 +1310,14 @@ paths:
schema:
type: boolean
default: false
- in: query
name: division
description: |
Plies which mark the beginning of the middlegame and endgame.
Only available in JSON
schema:
type: boolean
default: false
- in: query
name: ongoing
description: Ongoing games are delayed by a few seconds ranging from 3 to 60 depending on the time control, as to prevent cheat bots from using this API.
Expand Down Expand Up @@ -1438,6 +1462,14 @@ paths:
schema:
type: boolean
default: false
- in: query
name: division
description: |
Plies which mark the beginning of the middlegame and endgame.
Only available in JSON
schema:
type: boolean
default: false
- in: query
name: literate
description: |
Expand Down Expand Up @@ -2636,6 +2668,14 @@ paths:
schema:
type: boolean
default: false
- in: query
name: division
description: |
Plies which mark the beginning of the middlegame and endgame.
Only available in JSON
schema:
type: boolean
default: false
responses:
"200":
description: The list of games of an Arena tournament.
Expand Down Expand Up @@ -3536,6 +3576,14 @@ paths:
schema:
type: boolean
default: false
- in: query
name: division
description: |
Plies which mark the beginning of the middlegame and endgame.
Only available in JSON
schema:
type: boolean
default: false
responses:
"200":
description: The list of games of a Swiss tournament.
Expand Down Expand Up @@ -8742,6 +8790,16 @@ components:
type: number
totalTime:
type: number
division:
type: object
properties:
middle:
type: number
description: Ply at which the middlegame begins
end:
type: number
description: Ply at which the endgame begins
required: []
required:
- id
- rated
Expand Down

0 comments on commit e62d4b1

Please sign in to comment.