mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-29 14:12:54 +08:00
rename folder
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
---
|
||||
description: Enforces FastAPI best practices for application code within the 'app' directory, including data validation, dependency injection, and asynchronous operations.
|
||||
globs: app/**/*.*
|
||||
---
|
||||
- Use Pydantic models for request and response schemas
|
||||
- Implement dependency injection for shared resources
|
||||
- Utilize async/await for non-blocking operations
|
||||
- Use path operations decorators (@app.get, @app.post, etc.)
|
||||
- Implement proper error handling with HTTPException
|
||||
- Use FastAPI's built-in OpenAPI and JSON Schema support
|
||||
Reference in New Issue
Block a user