-
Notifications
You must be signed in to change notification settings - Fork 5
/
chess-com-puzzles.yaml
72 lines (72 loc) · 2.61 KB
/
chess-com-puzzles.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
openapi: 3.0.0
info:
title: Chess.com Daily Puzzle API
description: Information about the daily puzzle and a randomly picked daily puzzle found on Chess.com
version: 1.0.0
servers:
- url: https://api.chess.com/pub
paths:
/puzzle:
get:
summary: Get the daily puzzle
description: Returns information about the daily puzzle found on Chess.com
operationId: getDailyPuzzle
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
properties:
title:
type: string
description: The title of the daily puzzle
url:
type: string
description: The URL to the daily puzzle in Chess.com
publish_time:
type: integer
description: The date of the published puzzle in Unix timestamp format
fen:
type: string
description: The FEN of the published puzzle
pgn:
type: string
description: The PGN of the published puzzle
image:
type: string
description: The link to the image of the puzzle
x-jsonldContext: https://api.chess.com/context/DailyPuzzle.jsonld
/puzzle/random:
get:
summary: Get a random daily puzzle
description: Returns information about a randomly picked daily puzzle found on Chess.com
operationId: getRandomPuzzle
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
properties:
title:
type: string
description: The title of the daily puzzle
url:
type: string
description: The URL to the daily puzzle in Chess.com
publish_time:
type: integer
description: The date of the published puzzle in Unix timestamp format
fen:
type: string
description: The FEN of the published puzzle
pgn:
type: string
description: The PGN of the published puzzle
image:
type: string
description: The link to the image of the puzzle
x-jsonldContext: https://api.chess.com/context/DailyPuzzle.jsonld