- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Pearce (0.17 sec)
-
docs_src/query_params_str_validations/tutorial008.py
app = FastAPI() @app.get("/items/") async def read_items( q: Union[str, None] = Query( default=None, title="Query string", description="Query string for the items to search in the database that have a good match", min_length=3, ), ): results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]} if q: results.update({"q": q})
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 24 20:26:06 GMT 2023 - 466 bytes - Viewed (0)