generate_api_endpoint
Generate custom API endpoints with Express route handlers and Swagger documentation. Define HTTP method, path, schemas, and permissions.
Instructions
Generate custom API endpoints with Express route handlers and Swagger documentation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | HTTP method | |
| moduleId | Yes | Module ID (kebab-case) | |
| description | Yes | Endpoint description | |
| handlerName | Yes | Handler function name (camelCase) | |
| permissions | No | Required permissions (optional) | |
| endpointPath | Yes | API endpoint path (e.g., /process-payment) | |
| requestSchema | No | Request body schema (optional) | |
| responseSchema | No | Response schema (optional) |