Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 350 for tutorial003_py310 (0.61 sec)

  1. tests/test_tutorial/test_query_params/test_tutorial003.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial003_py39"),
            pytest.param("tutorial003_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.query_params.{request.param}")
    
        client = TestClient(mod.app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/body-nested-models.md

    {* ../../docs_src/body_nested_models/tutorial002_py310.py hl[12] *}
    
    ## Set types { #set-types }
    
    But then we think about it, and realize that tags shouldn't repeat, they would probably be unique strings.
    
    And Python has a special data type for sets of unique items, the `set`.
    
    Then we can declare `tags` as a set of strings:
    
    {* ../../docs_src/body_nested_models/tutorial003_py310.py hl[12] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  3. docs/ru/docs/tutorial/body-nested-models.md

    Например, мы можем определить модель `Image`:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[7:9] *}
    
    ### Использование подмодели как типа { #use-the-submodel-as-a-type }
    
    Также мы можем использовать эту модель как тип атрибута:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[18] *}
    
    Это означает, что **FastAPI** будет ожидать тело запроса, аналогичное этому:
    
    ```JSON
    {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_response_model/test_tutorial003.py

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

    {* ../../docs_src/body/tutorial003_py310.py hl[15:16] *}
    
    ## Тело запроса + параметры пути + параметры запроса { #request-body-path-query-parameters }
    
    Вы также можете одновременно объявить параметры **тела**, **пути** и **запроса**.
    
    **FastAPI** распознает каждый из них и возьмёт данные из правильного источника.
    
    {* ../../docs_src/body/tutorial004_py310.py hl[16] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_extra_models/test_tutorial003.py

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

    {* ../../docs_src/body/tutorial003_py310.py hl[15:16] *}
    
    
    ## Request body + path + query parameters { #request-body-path-query-parameters }
    
    You can also declare **body**, **path** and **query** parameters, all at the same time.
    
    **FastAPI** will recognize each of them and take the data from the correct place.
    
    {* ../../docs_src/body/tutorial004_py310.py hl[16] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/body.md

    {* ../../docs_src/body/tutorial003_py310.py hl[15:16] *}
    
    
    ## Requestbody- + Pfad- + Query-Parameter { #request-body-path-query-parameters }
    
    Sie können auch zur gleichen Zeit **Body-**, **Pfad-** und **Query-Parameter** deklarieren.
    
    **FastAPI** wird jeden von ihnen korrekt erkennen und die Daten vom richtigen Ort holen.
    
    {* ../../docs_src/body/tutorial004_py310.py hl[16] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/body.md

    * 代码重构
    * 查找
    * 代码审查
    
    ///
    
    ## 使用模型
    
    在*路径操作*函数内部直接访问模型对象的属性:
    
    {* ../../docs_src/body/tutorial002_py310.py hl[19] *}
    
    ## 请求体 + 路径参数
    
    **FastAPI** 支持同时声明路径参数和请求体。
    
    **FastAPI** 能识别与**路径参数**匹配的函数参数,还能识别从**请求体**中获取的类型为 Pydantic 模型的函数参数。
    
    {* ../../docs_src/body/tutorial003_py310.py hl[15:16] *}
    
    ## 请求体 + 路径参数 + 查询参数
    
    **FastAPI** 支持同时声明**请求体**、**路径参数**和**查询参数**。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_dataclasses/test_tutorial003.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial003_py39"),
            pytest.param("tutorial003_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.dataclasses_.{request.param}")
    
        client = TestClient(mod.app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top