mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-26 11:49:56 -04:00
🚚 Re-sort tutorial example files
This commit is contained in:
1 parent
8eaae72b76
commit
a47243d915
71 files changed
+656
-656
No files matched your search
@@ -5,9 +5,8 @@ app = FastAPI()
|
||||
|
||||
@app.get("/items/{item_id}")
|
||||
async def read_items(
|
||||
*,
|
||||
item_id: int = Path(..., title="The ID of the item to get", gt=0, le=1000),
|
||||
q: str,
|
||||
item_id: int = Path(..., title="The ID of the item to get"),
|
||||
):
|
||||
results = {"item_id": item_id}
|
||||
if q:
|
||||
|
||||
Reference in new issue
Block a user