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

6 statements  

« prev     ^ index     » next       coverage.py v7.13.3, created at 2026-04-06 01:24 +0000

1from fastapi import FastAPI 1abcdefgh

2 

3app = FastAPI() 1abcdefgh

4 

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

6 

7 

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

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

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