-
Notifications
You must be signed in to change notification settings - Fork 29
feat: Separate Run API and Manage API documentation #406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Implements separate OpenAPI documentation generation for Run API and Manage API with automated fetching from running services. ## Changes ### New Scripts - `agents-docs/scripts/fetch-openapi-specs.mjs`: Fetch latest OpenAPI specs from both APIs - Run API (localhost:3003) → `src/lib/run-api.json` - Manage API (localhost:3002) → `src/lib/manage-api.json` ### Updated Scripts - `agents-docs/scripts/generate-openapi-docs.mjs`: Generate separate docs for each API ### New NPM Commands - `pnpm fetch-openapi`: Download latest specs from running APIs - `pnpm update-api-docs`: Combined fetch + generate command ### Documentation - New `api-reference/run-api.mdx`: Run API reference page - New `api-reference/manage-api.mdx`: Manage API reference page - Updated `api-reference/index.mdx`: Overview explaining both APIs - Updated `navigation.ts`: Separate sidebar entries for each API - Updated `CLAUDE.md`: Documented new workflow ### Generated Files - `src/lib/run-api.json`: Run API OpenAPI spec (34KB, 5 endpoints) - `src/lib/manage-api.json`: Manage API OpenAPI spec (956KB, 44 endpoints) - Auto-generated MDX files for each API's operations ## Usage ```bash # Start both APIs (from project root) pnpm dev:apis # Update API documentation (from agents-docs/) pnpm update-api-docs ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Claude finished @amikofalvy's task —— View job Code Review CompleteI've conducted a comprehensive architectural and engineering review of the API documentation separation changes. Here's my analysis: ✅ Strengths1. Excellent Architectural Separation
2. Robust Implementation Quality
3. Developer Experience Excellence
|
Summary
Implements separate OpenAPI documentation generation for the Run API and Manage API with automated fetching from running services. This replaces the previous combined API reference with two distinct, independently maintained API documentation pages.
Changes
New Scripts
agents-docs/scripts/fetch-openapi-specs.mjs
: Fetches latest OpenAPI specs from both running APIssrc/lib/run-api.json
(34KB, 5 endpoints)src/lib/manage-api.json
(956KB, 44 endpoints)Updated Scripts
agents-docs/scripts/generate-openapi-docs.mjs
: Now generates separate documentation for each APINew NPM Commands
pnpm fetch-openapi
- Download latest specs from running APIspnpm generate-openapi
- Generate static docs from specspnpm update-api-docs
- Combined command: fetch + generateDocumentation Structure
api-reference/run-api.mdx
- Run API reference pageapi-reference/manage-api.mdx
- Manage API reference pageapi-reference/index.mdx
- Overview page explaining both APIsnavigation.ts
- Separate sidebar entries for each APICLAUDE.md
- Documented new workflowGenerated Files
src/lib/run-api.json
- Run API OpenAPI specificationsrc/lib/manage-api.json
- Manage API OpenAPI specificationWhy These Changes?
Usage
Test Plan
Screenshots
Navigation sidebar now shows separate Run API and Manage API entries under API Reference
🤖 Generated with Claude Code