Skip to content

Commit 87d041a

Browse files
authored
Merge pull request #639 from lichess-org/scalar-explorer-endpoint
Fix hostnames used by Scalar's "Test Request" UI
2 parents a00355d + 671b26a commit 87d041a

11 files changed

Lines changed: 65 additions & 23 deletions

doc/specs/lichess-api.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ tags:
219219
220220
Runs <https://github.com/lichess-org/lila-openingexplorer>.
221221
222-
**The endpoint hostname is not lichess.org but explorer.lichess.org.**
222+
> [!important]
223+
> The hostname for these endpoints is `explorer.lichess.org` and not `lichess.org`.
223224
- name: Puzzles
224225
description: |
225226
Fetch and solve [puzzles](https://lichess.org/training), view your puzzle history and dashboard.
@@ -241,7 +242,8 @@ tags:
241242
description: |
242243
Lookup positions from the [Lichess tablebase server](https://lichess.org/blog/W3WeMyQAACQAdfAL/7-piece-syzygy-tablebases-are-complete).
243244
244-
**The endpoint hostname is not lichess.org but tablebase.lichess.org.**
245+
> [!important]
246+
> The hostname for these endpoints is `tablebase.lichess.org` and not `lichess.org`.
245247
- name: Teams
246248
description: |
247249
Access and manage Lichess teams and their members.

doc/specs/tags/externalengine/api-external-engine-id-analyse.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
servers:
2-
- url: https://engine.lichess.ovh
31
parameters:
42
- in: path
53
name: id
@@ -13,6 +11,12 @@ post:
1311
summary: Analyse with external engine
1412
tags:
1513
- External engine
14+
servers:
15+
- url: https://engine.lichess.ovh
16+
- url: http://localhost:{port}
17+
variables:
18+
port:
19+
default: "9666"
1620
security: []
1721
description: |
1822
**Endpoint: `https://engine.lichess.ovh/api/external-engine/{id}/analyse`**

doc/specs/tags/externalengine/api-external-engine-work-id.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
servers:
2-
- url: https://engine.lichess.ovh
31
parameters:
42
- in: path
53
name: id
@@ -12,6 +10,12 @@ post:
1210
summary: Answer analysis request
1311
tags:
1412
- External engine
13+
servers:
14+
- url: https://engine.lichess.ovh
15+
- url: http://localhost:{port}
16+
variables:
17+
port:
18+
default: "9666"
1519
security: []
1620
description: |
1721
**Endpoint: `https://engine.lichess.ovh/api/external-engine/work/{id}`**

doc/specs/tags/externalengine/api-external-engine-work.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
servers:
2-
- url: https://engine.lichess.ovh
31
post:
42
operationId: apiExternalEngineAcquire
53
summary: Acquire analysis request
64
tags:
75
- External engine
6+
servers:
7+
- url: https://engine.lichess.ovh
8+
- url: http://localhost:{port}
9+
variables:
10+
port:
11+
default: "9666"
812
security: []
913
description: |
1014
**Endpoint: `https://engine.lichess.ovh/api/external-engine/work`**
1115
Wait for an analysis requests to any of the external engines that
1216
have been registered with the given `secret`.
1317
Uses long polling.
1418
After acquiring a request, the provider should immediately
15-
[start streaming the results](#tag/external-engine/POST/api/external-engine/workid).
19+
[start streaming the results](#tag/external-engine/POST/api/external-engine/work/{id}).
1620
requestBody:
1721
description: Provider credentials.
1822
required: true

doc/specs/tags/openingexplorer/lichess.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
servers:
2-
- url: https://explorer.lichess.org
31
get:
42
operationId: openingExplorerLichess
53
summary: Lichess games
@@ -11,6 +9,12 @@ get:
119
Example: `curl https://explorer.lichess.org/lichess?variant=standard&speeds=blitz,rapid,classical&ratings=2200,2500&fen=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR%20w%20KQkq%20-%200%201`
1210
tags:
1311
- Opening Explorer
12+
servers:
13+
- url: https://explorer.lichess.org
14+
- url: http://localhost:{port}
15+
variables:
16+
port:
17+
default: "9002"
1418
security:
1519
- OAuth2: []
1620
parameters:

doc/specs/tags/openingexplorer/masters-pgn-gameId.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
servers:
2-
- url: https://explorer.lichess.org
31
get:
42
operationId: openingExplorerMasterGame
53
summary: OTB master game
@@ -9,6 +7,12 @@ get:
97
Example: `curl https://explorer.lichess.org/masters/pgn/aAbqI4ey`
108
tags:
119
- Opening Explorer
10+
servers:
11+
- url: https://explorer.lichess.org
12+
- url: http://localhost:{port}
13+
variables:
14+
port:
15+
default: "9002"
1216
security:
1317
- OAuth2: []
1418
parameters:

doc/specs/tags/openingexplorer/masters.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
servers:
2-
- url: https://explorer.lichess.org
31
get:
42
operationId: openingExplorerMaster
53
summary: Masters database
@@ -9,6 +7,12 @@ get:
97
Example: `curl https://explorer.lichess.org/masters?play=d2d4,d7d5,c2c4,c7c6,c4d5`
108
tags:
119
- Opening Explorer
10+
servers:
11+
- url: https://explorer.lichess.org
12+
- url: http://localhost:{port}
13+
variables:
14+
port:
15+
default: "9002"
1216
security:
1317
- OAuth2: []
1418
parameters:

doc/specs/tags/openingexplorer/player.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
servers:
2-
- url: https://explorer.lichess.org
31
get:
42
operationId: openingExplorerPlayer
53
summary: Player games
@@ -19,6 +17,12 @@ get:
1917
Example: `curl https://explorer.lichess.org/player?player=revoof&color=white&play=d2d4,d7d5&recentGames=1`
2018
tags:
2119
- Opening Explorer
20+
servers:
21+
- url: https://explorer.lichess.org
22+
- url: http://localhost:{port}
23+
variables:
24+
port:
25+
default: "9002"
2226
security:
2327
- OAuth2: []
2428
parameters:

doc/specs/tags/tablebase/antichess.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
servers:
2-
- url: https://tablebase.lichess.org
31
get:
42
operationId: antichessAtomic
53
summary: Tablebase lookup for Antichess
64
description: |
75
**Endpoint: <https://tablebase.lichess.org>**
86
tags:
97
- Tablebase
8+
servers:
9+
- url: https://tablebase.lichess.org
10+
- url: http://localhost:{port}
11+
variables:
12+
port:
13+
default: "9000"
1014
security: []
1115
parameters:
1216
- in: query

doc/specs/tags/tablebase/atomic.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
servers:
2-
- url: https://tablebase.lichess.org
31
get:
42
operationId: tablebaseAtomic
53
summary: Tablebase lookup for Atomic chess
64
description: |
75
**Endpoint: <https://tablebase.lichess.org>**
86
tags:
97
- Tablebase
8+
servers:
9+
- url: https://tablebase.lichess.org
10+
- url: http://localhost:{port}
11+
variables:
12+
port:
13+
default: "9000"
1014
security: []
1115
parameters:
1216
- in: query

0 commit comments

Comments
 (0)