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.

2.0 KiB

🎲 🗄

🚥 👆 💪, 👆 💪 ⚙️ ⚒ & 🌐 🔢 🔗 🗄 ✔ 🔛 🌐, & 🍕.

🔃 💂‍♂, 🔗, & 🩺

🕵‍♂ 👆 🧾 👩‍💻 🔢 🏭 🚫🔜 🚫 🌌 🛡 👆 🛠️.

👈 🚫 🚮 🙆 💂‍♂ 👆 🛠️, 🛠️ 🔜 💪 🌐 👫.

🚥 📤 💂‍♂ ⚠ 👆 📟, 🔜 🔀.

🕵‍♂ 🧾🌅🤔 🔗 ⏮️ 👆 🛠️, & 💪🌅👆🏭. 💪 🤔 🎯 📨 💂‍♂ 🔘 🌌.

🚥 👆 💚 🔐 👆 🛠️, 📤 📚 👍 👜 👆 💪, 🖼:

  • 💭 👆 ✔️ 👍 🔬 Pydantic 🏷 👆 📨 💪 & 📨.
  • 🔗 🙆 ✔ ✔ & 🔑 ⚙️ 🔗.
  • 🙅 🏪 🔢 🔐, 🕴 🔐#️⃣.
  • 🛠️ & ⚙️ 👍-💭 🔐 🧰, 💖 🇸🇲 & 🥙 🤝, ️.
  • 🚮 🌅 🧽 ✔ 🎛 ⏮️ Oauth2️⃣🌐 💪.
  • ...️.

👐, 👆 5️⃣📆 ✔️ 📶 🎯 ⚙️ 💼 🌐 👆 🤙 💪 🛠️ 🩺 🌐 ( 🏭) ⚖️ 🔛 📳 ➡️ 🌐 🔢.

🎲 🗄 ➡️ ⚒ & 🇨🇻 {

👆 💪 💪 ⚙️ 🎏 Pydantic ⚒ 🔗 👆 🏗 🗄 & 🩺 ⚜.

🖼:

{!../../../docs_src/conditional_openapi/tutorial001.py!}

📥 👥 📣openapi_url ⏮️ 🎏 🔢 "/openapi.json".

& ⤴️ 👥 ⚙️ 🕐 🏗 FastAPI 📱.

⤴️ 👆 💪 🗄 ( 🎚 🩺) ⚒ 🌐 🔢 OPENAPI_URL 🛁 🎻, 💖:

$ OPENAPI_URL= uvicorn main:app

<span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)

⤴️ 🚥 👆 🚶 📛 /openapi.json, /docs, ⚖️ /redoc 👆 🔜 🤚 404 Not Found 💖:

{
    "detail": "Not Found"
}