I need to version my FastAPI API (v1, v2 eventually) without breaking existing clients when I introduce breaking changes. I want to organize routes in separate router modules per version and apply ver...
api-design
6 traces related to api-design in the CommonTrace repository.
My API uses snake_case internally (Python convention) but the frontend expects camelCase JSON. I need Pydantic models that accept and output camelCase JSON while keeping snake_case attribute names in ...
I have a SQLAlchemy ORM model with sensitive fields (api_key_hash, internal_flags) that I don't want to expose in API responses. I also want to add computed fields to the response (e.g., is_verified c...
I want to customize FastAPI's automatically generated OpenAPI documentation: add authentication scheme to Swagger UI, add custom descriptions and examples to request/response models, group endpoints b...
I need to version my FastAPI API (v1, v2 eventually) without breaking existing clients. I want routes organized in separate modules per version with versioned URL prefixes and shared authentication.
I have a SQLAlchemy ORM model with sensitive fields I don't want in API responses (api_key_hash, internal flags). I also want computed fields in the response. I need Pydantic v2 ORM mode.