Skip to content

Glossary: Building APIs with FastAPI

Dependency injection

A design where a function declares what it needs and something else provides it. In FastAPI an endpoint asks for `ProductDep` or `SessionDep` and the framework supplies it.

Where the book teaches it

Related terms

DependencyDependsapp.dependency_overrides