Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 307 for tutorial008b_py310 (0.07 sec)

  1. docs/pt/docs/tutorial/query-params-str-validations.md

    O **FastAPI** permite declarar informações adicionais e validações para os seus parâmetros.
    
    Vamos usar esta aplicação como exemplo:
    
    {* ../../docs_src/query_params_str_validations/tutorial001_py310.py hl[7] *}
    
    O parâmetro de consulta `q` é do tipo `str | None`, isso significa que é do tipo `str`, mas também pode ser `None`, e de fato, o valor padrão é `None`, então o FastAPI saberá que não é obrigatório.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_multiple_params/test_tutorial004.py

    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial004_py39"),
            pytest.param("tutorial004_py310", marks=needs_py310),
            pytest.param("tutorial004_an_py39"),
            pytest.param("tutorial004_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. docs/fr/docs/tutorial/body-multiple-params.md

        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    Mais vous pouvez également déclarer plusieurs paramètres provenant de body, par exemple `item` et `user` simultanément :
    
    {* ../../docs_src/body_multiple_params/tutorial002_py310.py hl[20] *}
    
    Dans ce cas, **FastAPI** détectera qu'il y a plus d'un paramètre dans le body (chacun correspondant à un modèle Pydantic).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 11:10:17 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_body/test_tutorial001.py

    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            "tutorial001_py39",
            pytest.param("tutorial001_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  5. docs/es/docs/tutorial/body-multiple-params.md

        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    Pero también puedes declarar múltiples parámetros del cuerpo, por ejemplo `item` y `user`:
    
    {* ../../docs_src/body_multiple_params/tutorial002_py310.py hl[20] *}
    
    En este caso, **FastAPI** notará que hay más de un parámetro del cuerpo en la función (hay dos parámetros que son modelos de Pydantic).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_sql_databases/test_tutorial001.py

        default_registry.dispose()
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial001_py39"),
            pytest.param("tutorial001_py310", marks=needs_py310),
            pytest.param("tutorial001_an_py39"),
            pytest.param("tutorial001_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        clear_sqlmodel()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 14K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/body-multiple-params.md

    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    但是你也可以声明多个请求体参数,例如 `item` 和 `user`:
    
    {* ../../docs_src/body_multiple_params/tutorial002_py310.py hl[20] *}
    
    在这种情况下,**FastAPI** 将注意到该函数中有多个请求体参数(两个 Pydantic 模型参数)。
    
    因此,它将使用参数名称作为请求体中的键(字段名称),并期望一个类似于以下内容的请求体:
    
    ```JSON
    {
        "item": {
            "name": "Foo",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. docs/ru/docs/advanced/path-operation-advanced-configuration.md

    Эта часть не попадёт в документацию, но другие инструменты (например, Sphinx) смогут использовать остальное.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial004_py310.py hl[17:27] *}
    
    ## Дополнительные ответы { #additional-responses }
    
    Вы, вероятно, уже видели, как объявлять `response_model` и `status_code` для *операции пути*.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/path-operation-advanced-configuration.md

    Sie wird nicht in der Dokumentation angezeigt, aber andere Tools (wie z. B. Sphinx) können den Rest verwenden.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial004_py310.py hl[17:27] *}
    
    ## Zusätzliche Responses { #additional-responses }
    
    Sie haben wahrscheinlich gesehen, wie man das `response_model` und den `status_code` für eine *Pfadoperation* deklariert.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_security/test_tutorial005.py

    from inline_snapshot import snapshot
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="mod",
        params=[
            pytest.param("tutorial005_py39"),
            pytest.param("tutorial005_py310", marks=needs_py310),
            pytest.param("tutorial005_an_py39"),
            pytest.param("tutorial005_an_py310", marks=needs_py310),
        ],
    )
    def get_mod(request: pytest.FixtureRequest):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top