Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 386 for body (0.15 sec)

  1. 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 21 07:19:11 GMT 2024
    - Last Modified: Tue Jan 23 13:55:32 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  2. 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 21 07:19:11 GMT 2024
    - Last Modified: Tue Jan 09 15:25:48 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body-updates.md

        ```
    
    === "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!}
        ```
    
    `PUT` is used to receive data that should replace the existing data.
    
    ### Warning about replacing
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/body-updates.md

    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="30-35"
        {!> ../../../docs_src/body_updates/tutorial001.py!}
        ```
    
    === "🐍 3️⃣.9️⃣ & 🔛"
    
        ```Python hl_lines="30-35"
        {!> ../../../docs_src/body_updates/tutorial001_py39.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="28-33"
        {!> ../../../docs_src/body_updates/tutorial001_py310.py!}
        ```
    
    `PUT` ⚙️ 📨 💽 👈 🔜 ❎ ♻ 💽.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  5. docs/ja/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 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/body-multiple-params.md

    ## Embed a single body parameter
    
    Let's say you only have a single `item` body parameter from a Pydantic model `Item`.
    
    By default, **FastAPI** will then expect its body directly.
    
    But if you want it to expect a JSON with a key `item` and inside of it the model contents, as it does when you declare extra body parameters, you can use the special `Body` parameter `embed`:
    
    ```Python
    item: Item = Body(embed=True)
    ```
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/body-nested-models.md

    === "Python 3.10+"
    
        ```Python hl_lines="12"
        {!> ../../../docs_src/body_nested_models/tutorial002_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="14"
        {!> ../../../docs_src/body_nested_models/tutorial002_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="14"
        {!> ../../../docs_src/body_nested_models/tutorial002.py!}
        ```
    
    ## Типы множеств
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/body-multiple-params.md

    ```Python
    item: Item = Body(embed=True)
    ```
    
    :
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="17"
        {!> ../../../docs_src/body_multiple_params/tutorial005.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="15"
        {!> ../../../docs_src/body_multiple_params/tutorial005_py310.py!}
        ```
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 5K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/body-multiple-params.md

    ## ボディ内の単数値
    
    クエリとパスパラメータの追加データを定義するための `Query` と `Path` があるのと同じように、 **FastAPI** は同等の `Body` を提供します。
    
    例えば、前のモデルを拡張して、同じボディに `item` と `user` の他にもう一つのキー `importance` を入れたいと決めることができます。
    
    単数値なのでそのまま宣言すると、**FastAPI** はそれがクエリパラメータであるとみなします。
    
    しかし、`Body`を使用して、**FastAPI** に別のボディキーとして扱うように指示することができます:
    
    
    ```Python hl_lines="23"
    {!../../../docs_src/body_multiple_params/tutorial003.py!}
    ```
    
    この場合、**FastAPI** は以下のようなボディを期待します:
    
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Mon Jan 15 15:48:41 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/body-nested-models.md

        {!> ../../../docs_src/body_nested_models/tutorial006_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="20"
        {!> ../../../docs_src/body_nested_models/tutorial006_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="20"
        {!> ../../../docs_src/body_nested_models/tutorial006.py!}
        ```
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.4K bytes
    - Viewed (0)
Back to top