docs_generate_openapi
Analyze PHP project routes and generate OpenAPI 3.0 specification with middleware, parameters, and security schemes. Convert controller routes to API documentation automatically.
Instructions
Generate OpenAPI 3.0 specification from analyzed PHP routes with middleware, parameters, and security schemes. Automatically converts controller routes to API documentation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the PHP project directory to analyze | |
| outputPath | No | Output path for OpenAPI spec file (default: ./openapi.json) | |
| format | No | Output format | json |
| title | No | API title (default: 'API Documentation') | |
| version | No | API version (default: '1.0.0') | |
| serverUrl | No | API server URL (e.g., 'https://api.example.com') |