1. 获取模型单个构件变更明细
获取模型变更概要中变更部分单个构件的变更明细。
请求方式:GET
请求地址:/api/{databaseKey}/compares/changes?compareKey={compareKey}&oldComponentKey={oldComponentKey}
&newComponentKey={newComponentKey}
1.1. 请求参数
Headers:
参数名 | 类型 | 示例 | 是否必填 | 参数含义 |
---|---|---|---|---|
Authorization | string | c4570cb9ca324bc8ba7dd9d1967710ea | 是 | 操作的通关令牌 |
PathParas:
参数名 | 类型 | 示例 | 是否必填 | 参数含义 |
---|---|---|---|---|
databaseKey | string | test | 是 | 数据库key,必传 |
SearchParas:
参数名 | 类型 | 示例 | 是否必填 | 参数含义 |
---|---|---|---|---|
compareKey | string | NULL | 是 | 模型对比key |
oldComponentKey | string | NULL | 是 | 旧版构件key |
newComponentKey | string | NULL | 是 | 新版构件key |
Body
application/json:
NULL
1.2. 参数说明
参数名 | 类型 | 示例 | 是否必填 | 参数含义 |
---|---|---|---|---|
NULL | NULL | NULL | NULL | NULL |
1.3. 正确返回
{
"message": "请求处理成功",
"code": "SUCCESS",
"data": {
"old": {
"key": "M208081111_3",
"geoFilePath": "xxxxxxxxxxxxxxxxxxxx",
"attribute": {
"系统名称": "系统名称1"
}
},
"new": {
"key": "M208081112_3",
"geoFilePath": "xxxxxxxxxxxxxxxxxxxx",
"attribute": {
"系统名称": "系统名称2"
}
},
"type": "both"
}
}
1.4. 状态码
状态码 | code | message | data | 原因 |
---|---|---|---|---|
400 | BAD_PARAMETER | 构件(xxx)为新增构件 | 当newComponentKey为新增构件时 | |
400 | BAD_PARAMETER | 构件(yyy)为删除构件 | 当oldComponentKey为删除构件时 | |
400 | BAD_PARAMETER | 构件(xxx)与构件(yyy)无差异 | 当构件无差异时 | |
400 | BAD_PARAMETER | 未找到构件(xxx)与构件(yyy)的对比数据 | 当对比数据不存在时 |
1.5. 备注
暂无备注
1.6. 注意事项
暂无注意事项