pythonasyncioapiasyncfastapiframeworkjsonjson-schemaopenapiopenapi3pydanticpython-typespython3redocreststarletteswaggerswagger-uiuvicornweb
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.
1.2 KiB
1.2 KiB
📨 - 🔀 👔 📟
👆 🎲 ✍ ⏭ 👈 👆 💪 ⚒ 🔢 📨 👔 📟{.internal-link target=_blank}.
✋️ 💼 👆 💪 📨 🎏 👔 📟 🌘 🔢.
⚙️ 💼
🖼, 🌈 👈 👆 💚 📨 🇺🇸🔍 👔 📟 "👌" 200
🔢.
✋️ 🚥 💽 🚫 🔀, 👆 💚 ✍ ⚫️, & 📨 🇺🇸🔍 👔 📟 "✍" 201
.
✋️ 👆 💚 💪 ⛽ & 🗜 💽 👆 📨 ⏮️ response_model
.
📚 💼, 👆 💪 ⚙️ Response
🔢.
⚙️ Response
🔢
👆 💪 📣 🔢 🆎 Response
👆 ➡ 🛠️ 🔢 (👆 💪 🍪 & 🎚).
& ⤴️ 👆 💪 ⚒ status_code
👈 🔀 📨 🎚.
{!../../docs_src/response_change_status_code/tutorial001.py!}
& ⤴️ 👆 💪 📨 🙆 🎚 👆 💪, 👆 🛎 🔜 ( dict
, 💽 🏷, ♒️).
& 🚥 👆 📣 response_model
, ⚫️ 🔜 ⚙️ ⛽ & 🗜 🎚 👆 📨.
FastAPI 🔜 ⚙️ 👈 🔀 📨 ⚗ 👔 📟 (🍪 & 🎚), & 🔜 🚮 👫 🏁 📨 👈 🔌 💲 👆 📨, ⛽ 🙆 response_model
.
👆 💪 📣 Response
🔢 🔗, & ⚒ 👔 📟 👫. ✋️ ✔️ 🤯 👈 🏁 1️⃣ ⚒ 🔜 🏆.