Coverage for docs_src / path_params / tutorial002_py310.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.13.3, created at 2026-02-12 18:15 +0000

1from fastapi import FastAPI 1abcd

2 

3app = FastAPI() 1abcd

4 

5 

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

7async def read_item(item_id: int): 1abcd

8 return {"item_id": item_id} 1efg