FastAPI top-level dependencies
2 min readJan 3, 2021
--
This article lives in:
Intro
FastAPI version 0.62.0
comes with global dependencies that you can apply to a whole application.
As well as top-level dependencies, tags, and other parameters for APIRouter
s, that before were available only on app.include_router()
.
This makes it easier to put configurations and dependencies (e.g. for authentication) related to a group of path operations more closely…