Myvideo

Guest

Login

Fast API Tutorial, Part 25: Dependencies in path operation decorators, global dependencies

Uploaded By: Myvideo
1 view
0
0 votes
0

There may be situations where you have multiple routes that all use the same dependencies and it's tedious to have to copy and paste the same code for each route. In these situations it would be helpful to be able to add dependencies to the APIRouter that you're using, or even to the entire FastAPI app as a whole. In this video I show you how you can use dependencies on a larger scale than just at the individual route level. GitHub:

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later