Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for cookie_examples (0.08 sec)

  1. tests/test_openapi_examples.py

                },
                "Header Two": {
                    "value": "header2",
                },
            },
        ),
    ):
        return data
    
    
    @app.get("/cookie_examples/")
    def cookie_examples(
        data: Union[str, None] = Cookie(
            default=None,
            examples=["json_schema_cookie1", "json_schema_cookie2"],
            openapi_examples={
                "Cookie One": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 15:57:43 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  2. tests/test_schema_extra_examples.py

        with pytest.warns(DeprecationWarning):
    
            @app.get("/cookie_example/")
            def cookie_example(
                data: Union[str, None] = Cookie(
                    default=None,
                    example="cookie1",
                ),
            ):
                return data
    
        @app.get("/cookie_examples/")
        def cookie_examples(
            data: Union[str, None] = Cookie(
                default=None,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 37.7K bytes
    - Viewed (0)
Back to top