ekko
|
99f9dcb2fe
|
feat: add automatic OpenAPI documentation generation (#445)
* feat: add automatic OpenAPI documentation generation
Added script to auto-generate OpenAPI spec from existing Koa routes:
- Scans route files and extracts endpoint definitions
- Generates proper OpenAPI 3.0 specification
- No code changes or decorators required
- Preserves existing code structure
Usage: npm run openapi:generate
Generated 51 endpoints across 13 tags.
* feat: enhance OpenAPI generator with all endpoints
Enhanced the auto-generation script to capture all API endpoints:
- Added support for inline function handlers
- Captured group-chat endpoints
- Added proxy endpoints for upstream API forwarding
- Added WebSocket terminal endpoint
- Added SSE chat streaming endpoint
- Increased coverage from 51 to 94 endpoints
- Added 24 comprehensive tags for all features
Generated OpenAPI spec now includes:
- All HTTP REST endpoints
- Proxy wildcards for /api/hermes/* and /v1/*
- WebSocket terminal connection
- Server-Sent Events for chat streaming
|
2026-05-04 20:30:04 +08:00 |
|