- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Pearce (0.13 sec)
-
docs_src/query_params_str_validations/tutorial008_an_py39.py
app = FastAPI() @app.get("/items/") async def read_items( q: Annotated[ Union[str, None], Query( title="Query string", description="Query string for the items to search in the database that have a good match", min_length=3, ), ] = None, ): 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 - 511 bytes - Viewed (0)