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
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) |