Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

hyp api.md

maoxiaoyue edited this page Apr 14, 2026 · 1 revision

hyp api — 建立 API-only 專案

建立僅有 API 結構的 HypGo 專案,不含靜態檔案和前端模板。適合微服務和後端 API。

用法

hyp api <project-name>

範例

hyp api myapi && cd myapi && go mod tidy
hyp ai-rules # 必要:生成 AI 配置檔

生成結構

myapi/
├── app/
│ ├── controllers/
│ ├── models/
│ └── services/
├── config/config.yaml
├── main.go
└── go.mod

hyp new 的差異

項目 hyp new hyp api
靜態檔案(static/)
HTML 模板(templates/)
歡迎頁面
API 路由
MVC 結構

相關命令

HypGo

繁體中文 | English


中文文件

設計文件

套件

AI 協作工具鏈

CLI 命令


English Docs

Design Docs

Packages

AI Collaboration Toolchain

CLI Commands

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /