Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for remark (0.15 sec)

  1. tests/test_tutorial/test_header_params/test_tutorial003.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from docs_src.header_params.tutorial003 import app
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,headers,expected_status,expected_response",
        [
            ("/items", None, 200, {"X-Token values": None}),
            ("/items", {"x-token": "foo"}, 200, {"X-Token values": ["foo"]}),
            (
                "/items",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jan 12 14:52:00 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  2. fastapi/param_functions.py

                """
            ),
        ] = None,
        deprecated: Annotated[
            Union[deprecated, str, bool, None],
            Doc(
                """
                Mark this parameter field as deprecated.
    
                It will affect the generated OpenAPI (e.g. visible at `/docs`).
                """
            ),
        ] = None,
        include_in_schema: Annotated[
            bool,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 62.5K bytes
    - Viewed (0)
  3. tests/test_param_include_in_schema.py

    }
    
    
    def test_openapi_schema():
        client = TestClient(app)
        response = client.get("/openapi.json")
        assert response.status_code == 200
        assert response.json() == openapi_schema
    
    
    @pytest.mark.parametrize(
        "path,cookies,expected_status,expected_response",
        [
            (
                "/hidden_cookie",
                {},
                200,
                {"hidden_cookie": None},
            ),
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  4. fastapi/routing.py

                    """
                ),
            ] = None,
            deprecated: Annotated[
                Optional[bool],
                Doc(
                    """
                    Mark all *path operations* in this router as deprecated.
    
                    It will be added to the generated OpenAPI (e.g. visible at `/docs`).
    
                    Read more about it in the
    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