Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 348 for BODY (0.16 sec)

  1. docs/ko/docs/tutorial/body.md

    <img src="/img/tutorial/body/image01.png">
    
    이를 필요로 하는 각각의 *경로 작동*내부의 API 문서에도 사용됩니다:
    
    <img src="/img/tutorial/body/image02.png">
    
    ## 편집기 지원
    
    편집기에서, 함수 내에서 타입 힌트와 완성을 어디서나 (만약 Pydantic model 대신에 `dict`을 받을 경우 나타나지 않을 수 있습니다) 받을 수 있습니다:
    
    <img src="/img/tutorial/body/image03.png">
    
    잘못된 타입 연산에 대한 에러 확인도 받을 수 있습니다:
    
    <img src="/img/tutorial/body/image04.png">
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/body.md

    <img src="/img/tutorial/body/image01.png">
    
    そして、それらが使われる *パスオペレーション* のそれぞれのAPIドキュメントにも表示されます:
    
    <img src="/img/tutorial/body/image02.png">
    
    ## エディターサポート
    
    エディターによる型ヒントと補完が関数内で利用できます (Pydanticモデルではなく `dict` を受け取ると、同じサポートは受けられません):
    
    <img src="/img/tutorial/body/image03.png">
    
    型によるエラーチェックも可能です:
    
    <img src="/img/tutorial/body/image04.png">
    
    これは偶然ではなく、このデザインに基づいてフレームワークが作られています。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  3. docs/fr/docs/tutorial/body.md

    ```Python hl_lines="4"
    {!../../../docs_src/body/tutorial001.py!}
    ```
    
    ## Créez votre modèle de données
    
    Déclarez ensuite votre modèle de données en tant que classe qui hérite de `BaseModel`.
    
    Utilisez les types Python standard pour tous les attributs :
    
    ```Python hl_lines="7-11"
    {!../../../docs_src/body/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  4. docs/uk/docs/tutorial/body.md

    ## Без Pydantic
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  5. 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 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  6. 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 28 07:19:10 GMT 2024
    - Last Modified: Mon Apr 01 05:35:27 GMT 2024
    - 3K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/body-fields.md

    ## Declare atributos do modelo
    
    Você pode então utilizar `Field` com atributos do modelo:
    
    ```Python hl_lines="11-14"
    {!../../../docs_src/body_fields/tutorial001.py!}
    ```
    
    `Field` funciona da mesma forma que `Query`, `Path` e `Body`, ele possui todos os mesmos parâmetros, etc.
    
    !!! note "Detalhes técnicos"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 02 15:00:11 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/body-updates.md

    然后再用它生成一个只含已设置(在请求中所发送)数据,且省略了默认值的 `dict`:
    
    ```Python hl_lines="34"
    {!../../../docs_src/body_updates/tutorial002.py!}
    ```
    
    ### 使用 Pydantic 的 `update` 参数
    
    接下来,用 `.copy()` 为已有模型创建调用 `update` 参数的副本,该参数为包含更新数据的 `dict`。
    
    例如,`stored_item_model.copy(update=update_data)`:
    
    ```Python hl_lines="35"
    {!../../../docs_src/body_updates/tutorial002.py!}
    ```
    
    ### 更新部分数据小结
    
    简而言之,更新部分数据应:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/body.md

    # Request Body
    
    When you need to send data from a client (let's say, a browser) to your API, you send it as a **request body**.
    
    A **request** body is data sent by the client to your API. A **response** body is the data your API sends to the client.
    
    Your API almost always has to send a **response** body. But clients don't necessarily need to send **request** bodies all the time.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/body.md

    ## Ohne Pydantic
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.1K bytes
    - Viewed (0)
Back to top