Debian Codegraph @

docs_src/query_params/tutorial005_py310.py

raw
1 from fastapi import FastAPI
2
3 app = FastAPI()
4
5
6 @app.get("/items/{item_id}")
7 async def read_user_item(item_id: str, needy: str):
8 item = {"item_id": item_id, "needy": needy}
9 return item