Debian Codegraph @

tests/test_modules_same_name_body/app/a.py

raw
1 from fastapi import APIRouter, Body
2
3 router = APIRouter()
4
5
6 @router.post("/compute")
7 def compute(a: int = Body(), b: str = Body()):
8 return {"a": a, "b": b}