Skip to content

zanets/01-simple-FastAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

01-simple-FastAPI

project structure

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/          # 複雜的業務邏輯 (例如計算公式、資料庫操作)

Commands

Start Server

API doc

DOC

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published