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

6 statements  

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

1from fastapi import FastAPI 1abc

2 

3app = FastAPI() 1abc

4 

5fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}] 1abc

6 

7 

8@app.get("/items/") 1abc

9async def read_item(skip: int = 0, limit: int = 10): 1abc

10 return fake_items_db[skip : skip + limit] 1def