Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for LT (0.11 sec)

  1. docs_src/path_params_numeric_validations/tutorial006_an_py39.py

    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        *,
        item_id: Annotated[int, Path(title="The ID of the item to get", ge=0, le=1000)],
        q: str,
        size: Annotated[float, Query(gt=0, lt=10.5)],
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 395 bytes
    - Viewed (0)
Back to top