mirror of https://github.com/tiangolo/fastapi.git
📝 Update includes in `docs/em/docs/tutorial/body-updates.md` (#12799)
This commit is contained in:
parent
b2ec345e67
commit
34ed88394c
|
|
@ -6,29 +6,7 @@
|
|||
|
||||
👆 💪 ⚙️ `jsonable_encoder` 🗜 🔢 💽 📊 👈 💪 🏪 🎻 (✅ ⏮️ ☁ 💽). 🖼, 🏭 `datetime` `str`.
|
||||
|
||||
//// tab | 🐍 3️⃣.6️⃣ & 🔛
|
||||
|
||||
```Python hl_lines="30-35"
|
||||
{!> ../../docs_src/body_updates/tutorial001.py!}
|
||||
```
|
||||
|
||||
////
|
||||
|
||||
//// tab | 🐍 3️⃣.9️⃣ & 🔛
|
||||
|
||||
```Python hl_lines="30-35"
|
||||
{!> ../../docs_src/body_updates/tutorial001_py39.py!}
|
||||
```
|
||||
|
||||
////
|
||||
|
||||
//// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛
|
||||
|
||||
```Python hl_lines="28-33"
|
||||
{!> ../../docs_src/body_updates/tutorial001_py310.py!}
|
||||
```
|
||||
|
||||
////
|
||||
{* ../../docs_src/body_updates/tutorial001.py hl[30:35] *}
|
||||
|
||||
`PUT` ⚙️ 📨 💽 👈 🔜 ❎ ♻ 💽.
|
||||
|
||||
|
|
@ -76,29 +54,7 @@
|
|||
|
||||
⤴️ 👆 💪 ⚙️ 👉 🏗 `dict` ⏮️ 🕴 💽 👈 ⚒ (📨 📨), 🚫 🔢 💲:
|
||||
|
||||
//// tab | 🐍 3️⃣.6️⃣ & 🔛
|
||||
|
||||
```Python hl_lines="34"
|
||||
{!> ../../docs_src/body_updates/tutorial002.py!}
|
||||
```
|
||||
|
||||
////
|
||||
|
||||
//// tab | 🐍 3️⃣.9️⃣ & 🔛
|
||||
|
||||
```Python hl_lines="34"
|
||||
{!> ../../docs_src/body_updates/tutorial002_py39.py!}
|
||||
```
|
||||
|
||||
////
|
||||
|
||||
//// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛
|
||||
|
||||
```Python hl_lines="32"
|
||||
{!> ../../docs_src/body_updates/tutorial002_py310.py!}
|
||||
```
|
||||
|
||||
////
|
||||
{* ../../docs_src/body_updates/tutorial002.py hl[34] *}
|
||||
|
||||
### ⚙️ Pydantic `update` 🔢
|
||||
|
||||
|
|
@ -106,29 +62,7 @@
|
|||
|
||||
💖 `stored_item_model.copy(update=update_data)`:
|
||||
|
||||
//// tab | 🐍 3️⃣.6️⃣ & 🔛
|
||||
|
||||
```Python hl_lines="35"
|
||||
{!> ../../docs_src/body_updates/tutorial002.py!}
|
||||
```
|
||||
|
||||
////
|
||||
|
||||
//// tab | 🐍 3️⃣.9️⃣ & 🔛
|
||||
|
||||
```Python hl_lines="35"
|
||||
{!> ../../docs_src/body_updates/tutorial002_py39.py!}
|
||||
```
|
||||
|
||||
////
|
||||
|
||||
//// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛
|
||||
|
||||
```Python hl_lines="33"
|
||||
{!> ../../docs_src/body_updates/tutorial002_py310.py!}
|
||||
```
|
||||
|
||||
////
|
||||
{* ../../docs_src/body_updates/tutorial002.py hl[35] *}
|
||||
|
||||
### 🍕 ℹ 🌃
|
||||
|
||||
|
|
@ -145,29 +79,7 @@
|
|||
* 🖊 💽 👆 💽.
|
||||
* 📨 ℹ 🏷.
|
||||
|
||||
//// tab | 🐍 3️⃣.6️⃣ & 🔛
|
||||
|
||||
```Python hl_lines="30-37"
|
||||
{!> ../../docs_src/body_updates/tutorial002.py!}
|
||||
```
|
||||
|
||||
////
|
||||
|
||||
//// tab | 🐍 3️⃣.9️⃣ & 🔛
|
||||
|
||||
```Python hl_lines="30-37"
|
||||
{!> ../../docs_src/body_updates/tutorial002_py39.py!}
|
||||
```
|
||||
|
||||
////
|
||||
|
||||
//// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛
|
||||
|
||||
```Python hl_lines="28-35"
|
||||
{!> ../../docs_src/body_updates/tutorial002_py310.py!}
|
||||
```
|
||||
|
||||
////
|
||||
{* ../../docs_src/body_updates/tutorial002.py hl[30:37] *}
|
||||
|
||||
/// tip
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue