@router.get("/", response_model=List[SummarySchema])
async def read_all_summaries(
user_data = Depends(Permission([
RoleType.OWNER,
RoleType.EDITOR,
RoleType.VIEWER
])
)) -> List[SummarySchema]:
return await crud.get_all()
-
Notifications
You must be signed in to change notification settings - Fork 0
MinYn/fastapi-permission
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
FastAPI 에서 Custom Permission을 사용하고, Swagger 문서에서 필요한 권한을 보여줌.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published