fix: 补充参数读取步骤
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user