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.4 KiB

🎧 🈸 - 🗻

🚥 👆 💪 ✔️ 2️⃣ 🔬 FastAPI 🈸, ⏮️ 👫 👍 🔬 🗄 & 👫 👍 🩺 ⚜, 👆 💪 ✔️ 👑 📱 & "🗻" 1️⃣ (⚖️ 🌅) 🎧-🈸(Ⓜ).

🗜 FastAPI 🈸

"🗜" ⛓ 🍕 "🔬" 🈸 🎯 ➡, 👈 ⤴️ 💅 🚚 🌐 🔽 👈 ➡, ⏮️ 🛠️ 📣 👈 🎧-🈸.

🔝-🎚 🈸

🥇, ✍ 👑, 🔝-🎚, FastAPI 🈸, & 🚮 🛠️:

{* ../../docs_src/sub_applications/tutorial001.py hl[3,6:8] *}

🎧-🈸

⤴️, ✍ 👆 🎧-🈸, & 🚮 🛠️.

👉 🎧-🈸 1️⃣ 🐩 FastAPI 🈸, 👉 1️⃣ 👈 🔜 "🗻":

{* ../../docs_src/sub_applications/tutorial001.py hl[11,14:16] *}

🗻 🎧-🈸

👆 🔝-🎚 🈸, app, 🗻 🎧-🈸, subapi.

👉 💼, 🔜 📌/subapi:

{* ../../docs_src/sub_applications/tutorial001.py hl[11,19] *}

🏧 🛠️ 🩺

🔜, 🏃 uvicorn ⏮️ 👑 📱, 🚥 👆 📁 main.py, 🔜:

$ uvicorn main:app --reload

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

& 📂 🩺 http://127.0.0.1:8000/docs.

👆 🔜 👀 🏧 🛠️ 🩺 👑 📱, 🔌 🕴 🚮 👍 🛠️:

& ⤴️, 📂 🩺 🎧-🈸, http://127.0.0.1:8000/subapi/docs.

👆 🔜 👀 🏧 🛠️ 🩺 🎧-🈸, 🕴 🚮 👍 🛠️, 🌐 🔽🎧-➡ 🔡 /subapi:

🚥 👆 🔄 🔗 ⏮️ 🙆 2️⃣ 👩‍💻 🔢, 👫 🔜 👷 ☑, ↩️ 🖥 🔜 💪 💬 🔠 🎯 📱 ⚖️ 🎧-📱.

📡 ℹ: root_path

🕐 👆 🗻 🎧-🈸 🔬 🔛, FastAPI 🔜 💅 🔗 🗻🎧-🈸 ⚙️ 🛠️ ➡️ 🔫 🔧 🤙 root_path.

👈 🌌, 🎧-🈸 🔜 💭 ⚙️ 👈🔡 🩺 🎚.

& 🎧-🈸 💪 ✔️ 🚮 👍 📌 🎧-🈸 & 🌐 🔜 👷 ☑, ↩️ FastAPI 🍵 🌐 👉 root_path🔁.

👆 🔜 💡 🌅 🔃 root_path & ⚙️ 🎯 📄 🔃 ⛅ 🗳{.internal-link target=_blank}.