01-simple-FastAPI/
├── pyproject.toml # uv 配置文件
├── app/
│ ├── __init__.py
│ ├── main.py # 程式入口,負責組裝所有路由
│ ├── api/ # 存放所有 API 接口
│ │ ├── __init__.py
│ │ ├── v1/ # 版本控制
│ │ │ ├── api.py # 彙整 v1 的所有路由
│ │ │ └── endpoints/ # 具體的功能模組
│ │ │ ├── calculator.py
│ │ │ ├── system.py
│ │ │ └── weather.py
│ ├── core/ # 全域設定 (例如 API 金鑰、配置)
│ ├── models/ # Pydantic 資料模型 (Schema)
│ └── services/ # 複雜的業務邏輯 (例如計算公式、資料庫操作)
Start Server