generate_fastapi_router
Create a FastAPI router with ready-to-use CRUD endpoints and dependency injection. Define a resource name and optional fields to generate a functional API router.
Instructions
Generate a FastAPI router with CRUD endpoints and dependency injection
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resource_name": "<resource_name>"
},
"name": "generate_fastapi_router"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Resource fields as name:type pairs | |
| api_key | No | API key for authentication | |
| resource_name | Yes | Resource name (e.g. users, products) |