generate_api_route
Generate production-ready API routes with built-in validation, authentication, and error handling. Supports REST, auth, webhooks, and realtime endpoints for Express and Next.js.
Instructions
Generate a production-ready API route with validation, authentication, and error handling based on best-practice backend patterns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| route_type | Yes | Type of API route to generate | |
| resource_name | Yes | Name of the resource (e.g., users, products) | |
| framework | No | Target framework | nextjs |
| features | No | Additional features: validation, auth, rate-limiting, caching |