mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-12 05:26:45 +00:00
📝 Change limit default parameter to 10 in Query docs (#366)
Rest of docs reference 10 as the default.
This commit is contained in:
parent
dc483478eb
commit
3ec4342282
1 changed files with 1 additions and 1 deletions
|
|
@ -6,5 +6,5 @@ fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"
|
||||||
|
|
||||||
|
|
||||||
@app.get("/items/")
|
@app.get("/items/")
|
||||||
async def read_item(skip: int = 0, limit: int = 100):
|
async def read_item(skip: int = 0, limit: int = 10):
|
||||||
return fake_items_db[skip : skip + limit]
|
return fake_items_db[skip : skip + limit]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue