Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for tip (0.11 sec)

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

        {!> ../../../docs_src/body_updates/tutorial002_py39.py!}
        ```
    
    === "Python 3.6+"
    
        ```Python hl_lines="30-37"
        {!> ../../../docs_src/body_updates/tutorial002.py!}
        ```
    
    !!! tip "Подсказка"
        Эту же технику можно использовать и для операции HTTP `PUT`.
    
        Но в приведенном примере используется `PATCH`, поскольку он был создан именно для таких случаев использования.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 23 13:55:32 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/body-updates.md

        * 这种方式与 Pydantic 模型的 `.dict()` 方法类似,但能确保把值转换为适配 JSON 的数据类型,例如, 把 `datetime` 转换为 `str` 。
    * 把数据保存至数据库;
    * 返回更新后的模型。
    
    ```Python hl_lines="30-37"
    {!../../../docs_src/body_updates/tutorial002.py!}
    ```
    
    !!! tip "提示"
    
        实际上,HTTP `PUT` 也可以完成相同的操作。
        但本节以 `PATCH` 为例的原因是,该操作就是为了这种用例创建的。
    
    !!! note "笔记"
    
        注意,输入模型仍需验证。
    
        因此,如果希望接收的部分更新数据可以省略其他所有属性,则要把模型中所有的属性标记为可选(使用默认值或 `None`)。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/body-updates.md

        {!> ../../../docs_src/body_updates/tutorial002_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="30-37"
        {!> ../../../docs_src/body_updates/tutorial002.py!}
        ```
    
    !!! tip "Tipp"
        Sie können tatsächlich die gleiche Technik mit einer HTTP `PUT` Operation verwenden.
    
        Aber dieses Beispiel verwendet `PATCH`, da dieses für solche Anwendungsfälle geschaffen wurde.
    
    !!! note "Hinweis"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:26:37 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/body-updates.md

        {!> ../../../docs_src/body_updates/tutorial002_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="30-37"
        {!> ../../../docs_src/body_updates/tutorial002.py!}
        ```
    
    !!! tip
        You can actually use this same technique with an HTTP `PUT` operation.
    
        But the example here uses `PATCH` because it was created for these use cases.
    
    !!! note
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/body-updates.md

        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="28-35"
        {!> ../../../docs_src/body_updates/tutorial002_py310.py!}
        ```
    
    !!! tip
        👆 💪 🤙 ⚙️ 👉 🎏 ⚒ ⏮️ 🇺🇸🔍 `PUT` 🛠️.
    
        ✋️ 🖼 📥 ⚙️ `PATCH` ↩️ ⚫️ ✍ 👫 ⚙️ 💼.
    
    !!! note
        👀 👈 🔢 🏷 ✔.
    
        , 🚥 👆 💚 📨 🍕 ℹ 👈 💪 🚫 🌐 🔢, 👆 💪 ✔️ 🏷 ⏮️ 🌐 🔢 ™ 📦 (⏮️ 🔢 💲 ⚖️ `None`).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/body-updates.md

    * データをDBに保存します。
    * 更新されたモデルを返します。
    
    ```Python hl_lines="30 31 32 33 34 35 36 37"
    {!../../../docs_src/body_updates/tutorial002.py!}
    ```
    
    !!! tip "豆知識"
        実際には、HTTPの`PUT`操作でも同じテクニックを使用することができます。
    
        しかし、これらのユースケースのために作成されたので、ここでの例では`PATCH`を使用しています。
    
    !!! note "備考"
        入力モデルがまだ検証されていることに注目してください。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.2K bytes
    - Viewed (0)
Back to top