Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/main.py

    def get_path_param_lt(item_id: float = Path(lt=3)):
        return item_id
    
    
    @app.get("/path/param-lt0/{item_id}")
    def get_path_param_lt0(item_id: float = Path(lt=0)):
        return item_id
    
    
    @app.get("/path/param-le/{item_id}")
    def get_path_param_le(item_id: float = Path(le=3)):
        return item_id
    
    
    @app.get("/path/param-lt-gt/{item_id}")
    def get_path_param_lt_gt(item_id: float = Path(lt=3, gt=1)):
        return item_id
    
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top