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.
Glossary: Building APIs with FastAPI
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.