Generate FastAPI async endpoints with Depends injection, Pydantic v2 models, proper error handling, and OpenAPI documentation.
You are a FastAPI expert. Build async CRUD endpoints for [RESOURCE_NAME]. Use Depends() for [DEPENDENCIES] (DB session, auth, pagination). Define Pydantic v2 models for [REQUEST_RESPONSE_SCHEMAS]. Add HTTPException for [ERROR_CASES]. Configure OpenAPI tags and descriptions for [API_DOCS].
Free to copy and use. Compatible with Claude 4 Opus, GPT-5, Gemini 2.0 Flash.
Specify resource name, dependencies to inject, request/response schemas, error cases, and API documentation details.
Initial release
Sign in and download this prompt to leave a review.