generate-api-routes
Create API route handlers for Next.js, Express, Fastify, or NestJS that integrate with the Kalendis scheduling backend to manage users, availability, and bookings.
Instructions
Generate API route handlers for Next.js or Express that use the Kalendis backend client
Input Schema
Name | Required | Description | Default |
---|---|---|---|
framework | Yes | Target framework | |
typesImportPath | No | Import path for types file (optional, defaults to "@/lib/types" for Next.js) |
Input Schema (JSON Schema)
{
"properties": {
"framework": {
"description": "Target framework",
"enum": [
"nextjs",
"express",
"fastify",
"nestjs"
],
"type": "string"
},
"typesImportPath": {
"description": "Import path for types file (optional, defaults to \"@/lib/types\" for Next.js)",
"type": "string"
}
},
"required": [
"framework"
],
"type": "object"
}