From 29be637086e5ea8fb453c99a7a1edb6bfe3e2029 Mon Sep 17 00:00:00 2001 From: Huawei Date: Tue, 14 Jul 2026 07:13:24 +0000 Subject: [PATCH] =?UTF-8?q?Update=20suites-help/SDK=E5=8F=82=E8=80=83/API-?= =?UTF-8?q?=E5=8F=82=E8=80=83.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- suites-help/SDK参考/API-参考.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/suites-help/SDK参考/API-参考.md b/suites-help/SDK参考/API-参考.md index 5041267..5bd6f32 100644 --- a/suites-help/SDK参考/API-参考.md +++ b/suites-help/SDK参考/API-参考.md @@ -26,7 +26,7 @@ API Key 从 https://auth.mercator.cn 获取。 | 方法 | 端点 | 说明 | |------|------|------| -| POST | `/api/v1/publish` | 发布套件(JSON 提交) | +| POST | `/api/v1/publish/upload` | 发布套件(上传 TGZ 包 + 需 Gitea Token) | ## 完整文档 @@ -46,3 +46,15 @@ API Key 从 https://auth.mercator.cn 获取。 | 409 | 资源冲突 | | 422 | 参数校验失败 | | 500 | 服务器内部错误 | + + +### POST /api/v1/publish/upload + +**参数:** + +| 参数 | 必填 | 类型 | 说明 | +|------|------|------|------| +| `file` | ✅ | File | 套件压缩包(含 workflow.yaml + scripts/)| +| `gitea_token` | ✅ | string | 发布者的 Gitea Token(需包写入权限) | + +发布到 `SuiteHub` 组织下,包名为英文 slug。 \ No newline at end of file