Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 676 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 676 Bytes

🚀 FastAPI Permission Usage (FastAPI 권한 사용 방법)

@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()

Result (결과물)

img

Test-Driven Development with FastAPI and Docker

Continuous Integration and Delivery

https://testdriven.io/courses/tdd-fastapi/