GET 查询模型创作契约列表
GET /loom/v1/modelContracts 查询模型创作契约列表
所属分组:Models · 可执行模型
Lists enabled, execution-surface-current contracts and their stable input/output ports for one model.
BASE URL
https://router.shengsuanyun.com/api认证方式
Authorization: Bearer YOUR_API_KEY端点列表
GET/loom/v1/modelContractsList model authoring contracts
Lists enabled, execution-surface-current contracts and their stable input/output ports for one model.
请求参数
| 参数 | 位置 / 类型 | 说明 |
|---|---|---|
modelId必填 | query / any | Exact model ID from /loom/v1/models. |
请求示例
参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。
curl -X GET 'https://loomloom.shengsuanyun.com/loom/v1/modelContracts?modelId=VALUE' \
-H 'Authorization: Bearer YOUR_API_KEY'响应
200 OK
application/json
object
{}400 Bad Request
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}401 Unauthorized
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}500 Internal Server Error
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}