- Add 60 new agents across all 10 categories (75 -> 135) - Add 95 new plugins with command files (25 -> 120) - Update all agents to use model: opus - Update README with complete plugin/agent tables - Update marketplace.json with all 120 plugins
624 B
624 B
Generate an OpenAPI 3.1 specification from existing API routes and handlers.
Steps
- Scan the project for API route definitions:
- For each endpoint, extract:
- Generate the OpenAPI spec:
- Add authentication schemes:
- Add examples for each endpoint.
- Validate the generated spec:
- Save as openapi.yaml or openapi.json.
Format
openapi: "3.1.0"
info:
title: <API Name>
version: <version>
Rules
- Use OpenAPI 3.1 unless the project requires 3.0 compatibility.
- Every endpoint must have at least one response defined.
- Use $ref for reusable schemas instead of inline definitions.