Skip to content

Commit 07e2f1a

Browse files
committed
feat: automate OpenAPI spec sync with endpoint filtering
Add sync-openapi.ts script that fetches upstream openapi.json from js-recall main branch and filters it for public documentation. Blocked path patterns: - /api/admin/** (admin endpoints) - /api/user/** (user dashboard endpoints) - /api/auth/login (user login) - /api/competitions/{id}/partners (partners listing) - /nfl/** (NFL endpoints) Blocked tags: Admin, User, NFL Also injects missing security scheme definitions (AgentApiKey, bearerAuth) until upstream fixes are merged.
1 parent 91a6c44 commit 07e2f1a

File tree

12 files changed

+264
-238
lines changed

12 files changed

+264
-238
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: Account
3+
description: Account management endpoints
4+
full: true
5+
_openapi:
6+
toc: []
7+
structuredData:
8+
headings: []
9+
contents: []
10+
---
11+
12+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
13+
14+
<APIPage document={"specs/competitions.json"} operations={[]} webhooks={[]} hasHead={true} />

docs/reference/endpoints/agent.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Agent
3-
description: Agent management endpoints for a single agent to interact with
3+
description: Agent management endpoints
44
full: true
55
_openapi:
66
toc: []

docs/reference/endpoints/agents.mdx

Lines changed: 0 additions & 27 deletions
This file was deleted.

docs/reference/endpoints/arenas.mdx

Lines changed: 0 additions & 24 deletions
This file was deleted.

docs/reference/endpoints/auth.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Auth
3-
description: Authentication endpoints for verifying agent wallet ownership
3+
description: Authentication endpoints
44
full: true
55
_openapi:
66
toc: []

docs/reference/endpoints/competition.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
---
22
title: Competition
3-
description: Get information about or interact with a competition
3+
description: Competition endpoints
44
full: true
55
_openapi:
66
toc: []
77
structuredData:
88
headings: []
99
contents:
1010
- content: Get all competitions
11+
- content: >-
12+
Get the competition rules including trading constraints, rate limits, and formulas for a
13+
specific competition
1114
- content: >-
1215
Get detailed information about a specific competition including all metadata
1316
- content: >-
@@ -20,9 +23,6 @@ _openapi:
2023
2124
while preserving historical participation data. Note: Cannot leave competitions that have
2225
already ended.
23-
- content: >-
24-
Get the competition rules including trading constraints, rate limits, and formulas for a
25-
specific competition
2626
- content: Get the timeline for all agents in a competition
2727
- content: >-
2828
Get all trades for a specific competition. Only available for paper trading competitions.
@@ -50,11 +50,11 @@ _openapi:
5050
document={"specs/competitions.json"}
5151
operations={[
5252
{ path: "/api/competitions", method: "get" },
53+
{ path: "/api/competitions/{competitionId}/rules", method: "get" },
5354
{ path: "/api/competitions/{competitionId}", method: "get" },
5455
{ path: "/api/competitions/{competitionId}/agents", method: "get" },
5556
{ path: "/api/competitions/{competitionId}/agents/{agentId}", method: "post" },
5657
{ path: "/api/competitions/{competitionId}/agents/{agentId}", method: "delete" },
57-
{ path: "/api/competitions/{competitionId}/rules", method: "get" },
5858
{ path: "/api/competitions/{competitionId}/timeline", method: "get" },
5959
{ path: "/api/competitions/{competitionId}/trades", method: "get" },
6060
{ path: "/api/competitions/{competitionId}/agents/{agentId}/trades", method: "get" },

docs/reference/endpoints/health.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Health
3-
description: Health check endpoints to ensure the API is running
3+
description: Health check endpoints
44
full: true
55
_openapi:
66
toc: []

docs/reference/endpoints/leaderboard.mdx

Lines changed: 0 additions & 27 deletions
This file was deleted.

docs/reference/endpoints/price.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Price
3-
description: Price information endpoints for fetching token prices
3+
description: Price information endpoints
44
full: true
55
_openapi:
66
method: GET

docs/reference/endpoints/trade.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Trade
3-
description: Trading endpoints for executing trades as part of a competition
3+
description: Trading endpoints
44
full: true
55
_openapi:
66
toc: []

0 commit comments

Comments
 (0)