mirror of
https://github.com/fastapi/fastapi.git
synced 2026-01-06 04:57:58 -05:00
* 🌐 💬 🩺 🦲 * 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks * 🛠️😊 * ♻️ Rename emoji lang from emj to em, and main docs name as 😉 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Axd1x8a <26704473+FeeeeK@users.noreply.github.com> Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2.2 KiB
2.2 KiB
💪 - 🏑
🎏 🌌 👆 💪 📣 🌖 🔬 & 🗃 ➡ 🛠️ 🔢 🔢 ⏮️ Query, Path & Body, 👆 💪 📣 🔬 & 🗃 🔘 Pydantic 🏷 ⚙️ Pydantic Field.
🗄 Field
🥇, 👆 ✔️ 🗄 ⚫️:
=== "🐍 3️⃣.6️⃣ & 🔛"
```Python hl_lines="4"
{!> ../../../docs_src/body_fields/tutorial001.py!}
```
=== "🐍 3️⃣.1️⃣0️⃣ & 🔛"
```Python hl_lines="2"
{!> ../../../docs_src/body_fields/tutorial001_py310.py!}
```
!!! warning
👀 👈 Field 🗄 🔗 ⚪️➡️ pydantic, 🚫 ⚪️➡️ fastapi 🌐 🎂 (Query, Path, Body, ♒️).
📣 🏷 🔢
👆 💪 ⤴️ ⚙️ Field ⏮️ 🏷 🔢:
=== "🐍 3️⃣.6️⃣ & 🔛"
```Python hl_lines="11-14"
{!> ../../../docs_src/body_fields/tutorial001.py!}
```
=== "🐍 3️⃣.1️⃣0️⃣ & 🔛"
```Python hl_lines="9-12"
{!> ../../../docs_src/body_fields/tutorial001_py310.py!}
```
Field 👷 🎏 🌌 Query, Path & Body, ⚫️ ✔️ 🌐 🎏 🔢, ♒️.
!!! note "📡 ℹ"
🤙, Query, Path & 🎏 👆 🔜 👀 ⏭ ✍ 🎚 🏿 ⚠ Param 🎓, ❔ ⚫️ 🏿 Pydantic FieldInfo 🎓.
& Pydantic `Field` 📨 👐 `FieldInfo` 👍.
`Body` 📨 🎚 🏿 `FieldInfo` 🔗. & 📤 🎏 👆 🔜 👀 ⏪ 👈 🏿 `Body` 🎓.
💭 👈 🕐❔ 👆 🗄 `Query`, `Path`, & 🎏 ⚪️➡️ `fastapi`, 👈 🤙 🔢 👈 📨 🎁 🎓.
!!! tip
👀 ❔ 🔠 🏷 🔢 ⏮️ 🆎, 🔢 💲 & Field ✔️ 🎏 📊 ➡ 🛠️ 🔢 🔢, ⏮️ Field ↩️ Path, Query & Body.
🚮 ➕ ℹ
👆 💪 📣 ➕ ℹ Field, Query, Body, ♒️. & ⚫️ 🔜 🔌 🏗 🎻 🔗.
👆 🔜 💡 🌅 🔃 ❎ ➕ ℹ ⏪ 🩺, 🕐❔ 🏫 📣 🖼.
!!! warning
➕ 🔑 🚶♀️ Field 🔜 🎁 📉 🗄 🔗 👆 🈸.
👫 🔑 5️⃣📆 🚫 🎯 🍕 🗄 🔧, 🗄 🧰, 🖼 🗄 💳, 5️⃣📆 🚫 👷 ⏮️ 👆 🏗 🔗.
🌃
👆 💪 ⚙️ Pydantic Field 📣 ➕ 🔬 & 🗃 🏷 🔢.
👆 💪 ⚙️ ➕ 🇨🇻 ❌ 🚶♀️ 🌖 🎻 🔗 🗃.