Coverage for docs_src/query_params/tutorial005.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2025-05-05 00:03 +0000

1from fastapi import FastAPI 1abcdef

2 

3app = FastAPI() 1abcdef

4 

5 

6@app.get("/items/{item_id}") 1abcdef

7async def read_user_item(item_id: str, needy: str): 1abcdef

8 item = {"item_id": item_id, "needy": needy} 1ghijkl

9 return item 1ghijkl