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

6 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2025-12-04 08:29 +0000

1from fastapi import FastAPI 1abcdefg

2 

3app = FastAPI() 1abcdefg

4 

5 

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

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

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

9 return item 1hijklmn