Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Marz (0.22 sec)

  1. docs/zh/docs/tutorial/body-updates.md

    ```Python hl_lines="30-35"
    {!../../../docs_src/body_updates/tutorial001.py!}
    ```
    
    `PUT` 用于接收替换现有数据的数据。
    
    ### 关于更新数据的警告
    
    用 `PUT` 把数据项 `bar` 更新为以下内容时:
    
    ```Python
    {
        "name": "Barz",
        "price": 3,
        "description": None,
    }
    ```
    
    因为上述数据未包含已存储的属性 `"tax": 20.2`,新的输入模型会把 `"tax": 10.5` 作为默认值。
    
    因此,本次操作把 `tax` 的值「更新」为 `10.5`。
    
    ## 用 `PATCH` 进行部分更新
    
    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)
  2. docs/en/docs/tutorial/body-updates.md

    `PUT` is used to receive data that should replace the existing data.
    
    ### Warning about replacing
    
    That means that if you want to update the item `bar` using `PUT` with a body containing:
    
    ```Python
    {
        "name": "Barz",
        "price": 3,
        "description": None,
    }
    ```
    
    because it doesn't include the already stored attribute `"tax": 20.2`, the input model would take the default value of `"tax": 10.5`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/body-updates.md

        {!> ../../../docs_src/body_updates/tutorial001_py310.py!}
        ```
    
    `PUT` ⚙️ 📨 💽 👈 🔜 ❎ ♻ 💽.
    
    ### ⚠ 🔃 ❎
    
    👈 ⛓ 👈 🚥 👆 💚 ℹ 🏬 `bar` ⚙️ `PUT` ⏮️ 💪 ⚗:
    
    ```Python
    {
        "name": "Barz",
        "price": 3,
        "description": None,
    }
    ```
    
    ↩️ ⚫️ 🚫 🔌 ⏪ 🏪 🔢 `"tax": 20.2`, 🔢 🏷 🔜 ✊ 🔢 💲 `"tax": 10.5`.
    
    & 📊 🔜 🖊 ⏮️ 👈 "🆕" `tax` `10.5`.
    
    ## 🍕 ℹ ⏮️ `PATCH`
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/body-updates.md

    {!../../../docs_src/body_updates/tutorial001.py!}
    ```
    
    既存のデータを置き換えるべきデータを受け取るために`PUT`は使用されます。
    
    ### 置換についての注意
    
    つまり、`PUT`を使用して以下のボディで項目`bar`を更新したい場合は:
    
    ```Python
    {
        "name": "Barz",
        "price": 3,
        "description": None,
    }
    ```
    
    すでに格納されている属性`"tax": 20.2`を含まないため、入力モデルのデフォルト値は`"tax": 10.5`です。
    
    そして、データはその「新しい」`10.5`の`tax`と共に保存されます。
    
    ## `PATCH`による部分的な更新
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.2K bytes
    - Viewed (0)
Back to top