Skip to content

v0.7.0 - Advanced Dependencies

Compare
Choose a tag to compare
@awtkns awtkns released this 18 Apr 23:07
· 200 commits to master since this release
48e5541

🎉 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