You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3.3 KiB

🛠️ 📳

📤 📚 🔢 👈 👆 💪 🚶‍♀️ 👆 🛠️ 👨‍🎨 🔗 ️.

/// warning

👀 👈 👫 🔢 🚶‍♀️ 🔗 🛠️ 👨‍🎨, 🚫 👆 🛠️ 🔢.

///

📨 👔 📟

👆 💪 🔬 (🇺🇸🔍) status_code ⚙️ 📨 👆 🛠️.

👆 💪 🚶‍♀️ 🔗 int 📟, 💖 404.

🚥 👆 🚫 💭 🔠 🔢 📟, 👆 💪 ⚙️📉 status:

{* ../../docs_src/path_operation_configuration/tutorial001.py hl[3,17] *}

👈 👔 📟 🔜 ⚙️ 📨 & 🔜 🚮 🗄 🔗.

/// note | 📡

👆 💪 ⚙️ from starlette import status.

FastAPI 🚚 🎏 starlette.status fastapi.status 🏪 👆, 👩‍💻. 👟 🔗 ➡️ 💃.

///

🔖

👆 💪 🚮 🔖 👆 🛠️, 🚶‍♀️ 🔢 tags ⏮️ list str (🛎 1️⃣ str):

{* ../../docs_src/path_operation_configuration/tutorial002.py hl[17,22,27] *}

👫 🔜 🚮 🗄 🔗 & ⚙️ 🏧 🧾 🔢:

🔖 ⏮️ 🔢

🚥 👆 ✔️ 🦏 🈸, 👆 5️⃣📆 🔚 🆙 📈 📚 🔖, & 👆 🔜 💚💭 👆 🕧 ⚙️ 🎏 🔖 🔗 🛠️.

👫 💼, 💪🔑 🏪 🔖 Enum.

FastAPI 🐕‍🦺 👈 🎏 🌌 ⏮️ 🎻:

{* ../../docs_src/path_operation_configuration/tutorial002b.py hl[1,8:10,13,18] *}

📄 & 📛

👆 💪 🚮 summary & description:

{* ../../docs_src/path_operation_configuration/tutorial003.py hl[20:21] *}

📛 ➡️ #️⃣

📛 😑 📏 & 📔 💗 ⏸, 👆 💪 📣 🛠️ 📛 🔢 #️⃣ & FastAPI 🔜➡️ 📤.

👆 💪 #️⃣ , 🔜 🔬 & 🖥 ☑ ( 🔘 🏧 #️⃣ 📐).

{* ../../docs_src/path_operation_configuration/tutorial004.py hl[19:27] *}

🔜 ⚙️ 🎓 🩺:

📨 📛

👆 💪📨 📛 ⏮️ 🔢 response_description:

{* ../../docs_src/path_operation_configuration/tutorial005.py hl[21] *}

/// info

👀 👈 response_description 🔗 🎯 📨, description 🔗 🛠️ 🏢.

///

/// check

🗄 ✔ 👈 🔠 🛠️ 🚚 📨 📛.

, 🚥 👆 🚫 🚚 1️⃣, FastAPI 🔜 🔁 🏗 1️⃣ "🏆 📨".

///

😢 🛠️

🚥 👆 💪🛠️ 😢, 🍵 ️, 🚶‍♀️ 🔢 deprecated:

{* ../../docs_src/path_operation_configuration/tutorial006.py hl[16] *}

🔜 🎯😢 🎓 🩺:

😢 & 🚫-😢 🛠️ 👀 💖:

🌃

👆 💪 🔗 & 🚮 🗃 👆 🛠️ 💪 🚶‍♀️ 🔢 🛠️ 👨‍🎨.