Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,064 for body (0.2 sec)

  1. docs/de/docs/tutorial/body-fields.md

    # Body – Felder
    
    So wie Sie zusätzliche Validation und Metadaten in Parametern der **Pfadoperation-Funktion** mittels `Query`, `Path` und `Body` deklarieren, können Sie auch innerhalb von Pydantic-Modellen zusätzliche Validation und Metadaten deklarieren, mittels Pydantics `Field`.
    
    ## `Field` importieren
    
    Importieren Sie es zuerst:
    
    === "Python 3.10+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001_an_py310.py!}
        ```
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Mon Jan 29 17:36:19 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/body-fields.md

    # Body - Поля
    
    Таким же способом, как вы объявляете дополнительную валидацию и метаданные в параметрах *функции обработки пути* с помощью функций `Query`, `Path` и `Body`, вы можете объявлять валидацию и метаданные внутри Pydantic моделей, используя функцию `Field` из Pydantic.
    
    ## Импорт `Field`
    
    Сначала вы должны импортировать его:
    
    === "Python 3.10+"
    
        ```Python hl_lines="2"
        {!> ../../../docs_src/body_fields/tutorial001_py310.py!}
        ```
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/body-updates.md

    === "Python 3.10+"
    
        ```Python hl_lines="28-33"
        {!> ../../../docs_src/body_updates/tutorial001_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="30-35"
        {!> ../../../docs_src/body_updates/tutorial001_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="30-35"
        {!> ../../../docs_src/body_updates/tutorial001.py!}
        ```
    
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 20:26:37 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/body-fields.md

    🎏 🌌 👆 💪 📣 🌖 🔬 & 🗃 *➡ 🛠️ 🔢* 🔢 ⏮️ `Query`, `Path` & `Body`, 👆 💪 📣 🔬 & 🗃 🔘 Pydantic 🏷 ⚙️ Pydantic `Field`.
    
    ## 🗄 `Field`
    
    🥇, 👆 ✔️ 🗄 ⚫️:
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="2"
        {!> ../../../docs_src/body_fields/tutorial001_py310.py!}
        ```
    
    !!! warning
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/body-updates.md

        ```Python hl_lines="28-33"
        {!> ../../../docs_src/body_updates/tutorial001_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="30-35"
        {!> ../../../docs_src/body_updates/tutorial001_py39.py!}
        ```
    
    === "Python 3.6+"
    
        ```Python hl_lines="30-35"
        {!> ../../../docs_src/body_updates/tutorial001.py!}
        ```
    
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Tue Jan 23 13:55:32 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  6. docs/uk/docs/tutorial/body-fields.md

        {!> ../../../docs_src/body_fields/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001_an.py!}
        ```
    
    === "Python 3.10+ non-Annotated"
    
        !!! tip
            Варто користуватись `Annotated` версією, якщо це можливо.
    
        ```Python hl_lines="2"
        {!> ../../../docs_src/body_fields/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+ non-Annotated"
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Tue Jan 09 15:25:48 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/body-fields.md

    # 본문 - 필드
    
    `Query`, `Path`와 `Body`를 사용해 *경로 작동 함수* 매개변수 내에서 추가적인 검증이나 메타데이터를 선언한 것처럼 Pydantic의 `Field`를 사용하여 모델 내에서 검증과 메타데이터를 선언할 수 있습니다.
    
    ## `Field` 임포트
    
    먼저 이를 임포트해야 합니다:
    
    === "Python 3.10+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001_an_py39.py!}
        ```
    
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Sun Feb 11 13:48:31 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/body-fields.md

    # Body - Fields
    
    The same way you can declare additional validation and metadata in *path operation function* parameters with `Query`, `Path` and `Body`, you can declare validation and metadata inside of Pydantic models using Pydantic's `Field`.
    
    ## Import `Field`
    
    First, you have to import it:
    
    === "Python 3.10+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/body-fields.md

        {!> ../../../docs_src/body_fields/tutorial001.py!}
        ```
    
    `Field` 的工作方式和 `Query`、`Path`、`Body` 相同,参数也相同。
    
    !!! note "技术细节"
    
        实际上,`Query`、`Path` 都是 `Params` 的子类,而 `Params` 类又是 Pydantic 中 `FieldInfo` 的子类。
    
        Pydantic 的 `Field` 返回也是 `FieldInfo` 的类实例。
    
        `Body` 直接返回的也是 `FieldInfo` 的子类的对象。后文还会介绍一些 `Body` 的子类。
    
        注意,从 `fastapi` 导入的 `Query`、`Path` 等对象实际上都是返回特殊类的函数。
    
    !!! tip "提示"
    
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Mon Apr 01 05:35:27 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/body-fields.md

    ```Python hl_lines="11 12 13 14"
    {!../../../docs_src/body_fields/tutorial001.py!}
    ```
    
    `Field`は`Query`や`Path`、`Body`と同じように動作し、全く同様のパラメータなどを持ちます。
    
    !!! note "技術詳細"
        実際には次に見る`Query`や`Path`などは、共通の`Param`クラスのサブクラスのオブジェクトを作成しますが、それ自体はPydanticの`FieldInfo`クラスのサブクラスです。
    
        また、Pydanticの`Field`は`FieldInfo`のインスタンスも返します。
    
        `Body`は`FieldInfo`のサブクラスのオブジェクトを直接返すこともできます。そして、他にも`Body`クラスのサブクラスであるものがあります。
    
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Mon Jan 15 15:33:28 GMT 2024
    - 2.5K bytes
    - Viewed (0)
Back to top