mirror of https://github.com/tiangolo/fastapi.git
📝 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
|
|
@ -6,5 +6,5 @@ fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"
|
|||
|
||||
|
||||
@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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue