Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/test_tutorial/test_body/test_tutorial001_py310.py

                        "msg": "value is not a valid dict",
                        "type": "type_error.dict",
                    }
                ]
            }
        )
    
    
    @needs_py310
    def test_explicit_content_type(client: TestClient):
        response = client.post(
            "/items/",
            content='{"name": "Foo", "price": 50.5}',
            headers={"Content-Type": "application/json"},
        )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 15K bytes
    - Viewed (2)
  2. tests/test_tutorial/test_body/test_tutorial001.py

                        "loc": ["body"],
                        "msg": "value is not a valid dict",
                        "type": "type_error.dict",
                    }
                ]
            }
        )
    
    
    def test_explicit_content_type(client: TestClient):
        response = client.post(
            "/items/",
            content='{"name": "Foo", "price": 50.5}',
            headers={"Content-Type": "application/json"},
        )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 14.7K bytes
    - Viewed (7)
  3. fastapi/openapi/models.py

    class OAuthFlowClientCredentials(OAuthFlow):
        tokenUrl: str
    
    
    class OAuthFlowAuthorizationCode(OAuthFlow):
        authorizationUrl: str
        tokenUrl: str
    
    
    class OAuthFlows(BaseModelWithConfig):
        implicit: Optional[OAuthFlowImplicit] = None
        password: Optional[OAuthFlowPassword] = None
        clientCredentials: Optional[OAuthFlowClientCredentials] = None
        authorizationCode: Optional[OAuthFlowAuthorizationCode] = None
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  4. fastapi/openapi/utils.py

                if route.status_code is not None:
                    status_code = str(route.status_code)
                else:
                    # It would probably make more sense for all response classes to have an
                    # explicit default status_code, and to extract it from them, instead of
                    # doing this inspection tricks, that would probably be in the future
                    # TODO: probably make status_code a default class attribute for all
    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)
Back to top