Skip to content

Glossary: Building APIs with FastAPI

Dependency

Also written: dependencies

A function FastAPI runs before your endpoint, passing in its result. It takes its parameters from the request and can raise errors, such as a 404 for a missing product.

Where the book teaches it

Related terms

DependsDependency injectionyield dependency