🚚 Re-sort tutorial example files

This commit is contained in:
Sebastián Ramírez
2018-12-13 21:25:45 +04:00
parent 8eaae72b76
commit a47243d915
71 changed files with 656 additions and 656 deletions

View File

@@ -4,11 +4,7 @@ app = FastAPI()
@app.get("/items/")
async def read_items(
q: str = Query(
None, title="Query string", min_length=3, max_length=50, regex="^fixedquery$"
)
):
async def read_items(q: str = Query(None, min_length=3, max_length=50, regex="^fixedquery$")):
results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
if q:
results.update({"q": q})