From deb44715c6f4f09e5b86bb723492f38d5a65943a Mon Sep 17 00:00:00 2001 From: Huawei Date: Mon, 13 Jul 2026 16:42:44 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20API-=E5=8F=82=E8=80=83=20=E2=80=94=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=B7=B2=E5=BA=9F=E5=BC=83=E7=AB=AF=E7=82=B9?= =?UTF-8?q?=EF=BC=88/execute,=20/task,=20/scripts=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- suites-help/SDK参考/API-参考.md | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/suites-help/SDK参考/API-参考.md b/suites-help/SDK参考/API-参考.md index 0f70407..5041267 100644 --- a/suites-help/SDK参考/API-参考.md +++ b/suites-help/SDK参考/API-参考.md @@ -8,8 +8,6 @@ https://suites.mercator.cn ## 认证 -使用 `Bearer Token` 或 `API Key`: - ```bash Authorization: Bearer mk_xxxxxxxxxxxxx ``` @@ -20,38 +18,15 @@ API Key 从 https://auth.mercator.cn 获取。 | 方法 | 端点 | 说明 | |------|------|------| -| POST | `/api/v1/suites` | 创建套件 | | GET | `/api/v1/suites` | 套件列表 | -| GET | `/api/v1/suites/search?q=` | 搜索套件 | | GET | `/api/v1/suites/{id}` | 套件详情 | | PATCH | `/api/v1/suites/{id}` | 更新套件 | -| DELETE | `/api/v1/suites/{id}` | 删除套件 | -| POST | `/api/v1/suites/{id}/execute` | 执行套件 | - -## 任务 API - -| 方法 | 端点 | 说明 | -|------|------|------| -| GET | `/api/v1/task/next` | 拉取待执行任务(长轮询)| -| PATCH | `/api/v1/task/{id}/status` | 更新任务状态 | -| GET | `/api/v1/task/{id}` | 查询任务详情 | - -## 脚本 API - -| 方法 | 端点 | 说明 | -|------|------|------| -| POST | `/api/v1/scripts` | 注册脚本 | -| GET | `/api/v1/scripts` | 脚本列表 | -| GET | `/api/v1/scripts/search?q=` | 搜索脚本 | -| GET | `/api/v1/scripts/{id}` | 脚本详情 | -| PATCH | `/api/v1/scripts/{id}` | 更新脚本 | ## 发布 API | 方法 | 端点 | 说明 | |------|------|------| | POST | `/api/v1/publish` | 发布套件(JSON 提交) | -| POST | `/api/v1/publish/upload` | 上传包文件发布 | ## 完整文档