From 9ae528f9813b628859ea44a0dd007e8283142d54 Mon Sep 17 00:00:00 2001 From: Huawei Date: Thu, 9 Jul 2026 15:20:29 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E5=85=85=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- suites-help/系统使用手册/快速入门.md | 29 ++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/suites-help/系统使用手册/快速入门.md b/suites-help/系统使用手册/快速入门.md index b681701..a7cc424 100644 --- a/suites-help/系统使用手册/快速入门.md +++ b/suites-help/系统使用手册/快速入门.md @@ -21,9 +21,34 @@ curl -s https://suites.mercator.cn/api/v1/suites/{suite_id} ## 第三步:选择套件 -从列表中筛选符合需求的套件,记录它的 `suite_id` 和参数说明。 +从列表中筛选符合需求的套件,记录它的 `suite_id`。 -## 第四步:提交执行 +## 第四步:读取参数结构 + +查看套件详情中的 `params_schema`,了解需要提供哪些参数: + +```bash +curl -s https://suites.mercator.cn/api/v1/suites/{suite_id} | jq '.params_schema' +``` + +返回示例: +```json +{ + "type": "object", + "required": ["buffer_distance"], + "properties": { + "buffer_distance": { + "type": "number", + "default": 0.5, + "description": "缓冲区距离(度)" + } + } +} +``` + +根据参数声明构造输入数据。 + +## 第五步:提交执行 ```bash curl -s -X POST https://suites.mercator.cn/api/v1/suites/{suite_id}/execute \