Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for upper (0.17 sec)

  1. tests/test_additional_responses_router.py

    @router.get("/a", responses={501: {"description": "Error 1"}})
    async def a():
        return "a"
    
    
    @router.get(
        "/b",
        responses={
            502: {"description": "Error 2"},
            "4XX": {"description": "Error with range, upper"},
        },
    )
    async def b():
        return "b"
    
    
    @router.get(
        "/c",
        responses={
            "400": {"description": "Error with str"},
            "5xx": {"description": "Error with range, lower"},
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  2. fastapi/openapi/utils.py

                        process_response = additional_response.copy()
                        process_response.pop("model", None)
                        status_code_key = str(additional_status_code).upper()
                        if status_code_key == "DEFAULT":
                            status_code_key = "default"
                        openapi_response = operation_responses.setdefault(
                            status_code_key, {}
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 21.8K bytes
    - Viewed (0)
  3. fastapi/routing.py

            self.path_regex, self.path_format, self.param_convertors = compile_path(path)
            if methods is None:
                methods = ["GET"]
            self.methods: Set[str] = {method.upper() for method in methods}
            if isinstance(generate_unique_id_function, DefaultPlaceholder):
                current_generate_unique_id: Callable[
                    ["APIRoute"], str
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
Back to top