Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 350 for tutorial003_py310 (0.12 seconds)

  1. tests/test_tutorial/test_header_param_models/test_tutorial003.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from tests.utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial003_py39"),
            pytest.param("tutorial003_py310", marks=needs_py310),
            pytest.param("tutorial003_an_py39"),
            pytest.param("tutorial003_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  2. docs/de/docs/tutorial/extra-models.md

    ///
    
    {* ../../docs_src/extra_models/tutorial003_py310.py hl[1,14:15,18:20,33] *}
    
    ### `Union` in Python 3.10 { #union-in-python-3-10 }
    
    In diesem Beispiel übergeben wir `Union[PlaneItem, CarItem]` als Wert des Arguments `response_model`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 24 10:28:19 GMT 2025
    - 8K bytes
    - Click Count (0)
  3. docs/ru/docs/tutorial/extra-models.md

    ///
    
    {* ../../docs_src/extra_models/tutorial003_py310.py hl[1,14:15,18:20,33] *}
    
    ### `Union` в Python 3.10 { #union-in-python-3-10 }
    
    В этом примере мы передаём `Union[PlaneItem, CarItem]` в качестве значения аргумента `response_model`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 30 11:24:39 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  4. 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] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 24 10:28:19 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  5. 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** 支持同时声明**请求体**、**路径参数**和**查询参数**。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 5.5K bytes
    - Click Count (0)
  6. docs/zh/docs/tutorial/extra-models.md

    ///
    
    {* ../../docs_src/extra_models/tutorial003_py310.py hl[1,14:15,18:20,33] *}
    
    ## 模型列表
    
    使用同样的方式也可以声明由对象列表构成的响应。
    
    为此,请使用标准的 Python `typing.List`:
    
    {* ../../docs_src/extra_models/tutorial004_py39.py hl[18] *}
    
    ## 任意 `dict` 构成的响应
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 5.7K bytes
    - Click Count (0)
  7. docs/pt/docs/tutorial/extra-models.md

    ///
    
    {* ../../docs_src/extra_models/tutorial003_py310.py hl[1,14:15,18:20,33] *}
    
    ### `Union` no Python 3.10 { #union-in-python-3-10 }
    
    Neste exemplo, passamos `Union[PlaneItem, CarItem]` como o valor do argumento `response_model`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/body.md

    Primeiro, você precisa importar `BaseModel` do `pydantic`:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[2] *}
    
    ## Crie seu modelo de dados { #create-your-data-model }
    
    Então você declara seu modelo de dados como uma classe que herda `BaseModel`.
    
    Utilize os tipos Python padrão para todos os atributos:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[5:9] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  9. docs/ko/docs/tutorial/body.md

    ## 모델 사용하기
    
    함수 안에서 모델 객체의 모든 어트리뷰트에 직접 접근 가능합니다:
    
    {* ../../docs_src/body/tutorial002_py310.py hl[19] *}
    
    ## 요청 본문 + 경로 매개변수
    
    경로 매개변수와 요청 본문을 동시에 선언할 수 있습니다.
    
    **FastAPI**는 경로 매개변수와 일치하는 함수 매개변수가 **경로에서 가져와야 한다**는 것을 인지하며, Pydantic 모델로 선언된 그 함수 매개변수는 **요청 본문에서 가져와야 한다**는 것을 인지할 것입니다.
    
    {* ../../docs_src/body/tutorial003_py310.py hl[15:16] *}
    
    ## 요청 본문 + 경로 + 쿼리 매개변수
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 7.8K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/extra-models.md

    ///
    
    {* ../../docs_src/extra_models/tutorial003_py310.py hl[1,14:15,18:20,33] *}
    
    ### `Union` in Python 3.10 { #union-in-python-3-10 }
    
    In this example we pass `Union[PlaneItem, CarItem]` as the value of the argument `response_model`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 6.9K bytes
    - Click Count (0)
Back to Top