v0.7.0 - Advanced Dependencies
🎉 Highlights
With the release of v0.7.0 fastapi-crudrouter now provides the ability to set custom dependencies on a per route basis; a much requested feature. Prior to this release, it was only possible to set dependencies for all the routes at once.
MemoryCRUDRouter(
schema=MySchema,
create_route=[Depends(user)],
delete_all_route=[Depends(admin)]
)
Shown above is a brief example on how limiting each route to specific access rights would work using this new feature. Check out the docs for more details.
✨ Features
- Custom Dependencies Per Route #37 #59 #60 @DorskFR @jm-moreau
- Ability to Provide a List of Custom Tags for OpenAPI #57 @jm-moreau
- Improved Documentation #52
- Dark Mode for Documentation