接口描述:传入子级线缆id和父级线缆id创建关系映射,并将子级线缆按照父级线缆走线方式进行排布
URL地址:http://ip:port /wapi/v1 / bundled_links_mapping
访问方法::POST
请求参数:
Body参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
containerId | Long | 3500000000105044 | 是 | 父级线缆id |
LinksToBeBundled | array[integer] | [25000000134276] | 是 | 子级线缆id数组 |
响应示例:
{
"code": 201,
"message": "created",
"data": {
"bundledLinks": [
{
"bundledLink": {
"id": 53000000000188,
"containerId": 3500000000105044,
"linkId": 25000000134276,
"topLeftX": null,
"topLeftY": null,
"bottomRightX": null,
"bottomRightY": null
},
"linkDetails": {
"linkName": "管井管段\n光纤资源:Tray_Node\\管井管段\n光纤资源:Tray_Node",
"linkType": "Tray"
}
}
],
"containerParent": []
}
}
接口描述:管段内截面由一个个栅格截面组成,传入关系id修改管段内某个栅格截面的位置或大小
URL地址:http://ip:port /wapi/v1/edit_bundled_links_mapping/{id}
访问方法::PUT
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
id | String | 53000000000177 | 是 | 映射关系id |
Body参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
bottomRightX | Double | 560 | 是 | 截面右下角x坐标 |
bottomRightY | Double | 300.7 | 是 | 截面右下角y坐标 |
topLeftX | Double | 460 | 是 | 截面左上角x坐标 |
topLeftY | Double | 199.2 | 是 | 截面左上角y坐标 |
响应示例:
{
"code": 200,
"data": {
"id": 53000000000177,
"containerId": 25000000121004,
"linkId": 25000000134102,
"topLeftX": 460,
"topLeftY": 199.21301154249738,
"bottomRightX": 560,
"bottomRightY": 300.7869884575026
}
}
接口描述:传入父级线缆的id,将此线缆的所有子级线缆映射删除
URL地址:http://ip:port /wapi/v1 /bundled_links_mapping/{containerId}/container_id
访问方法::Delete
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
containerId | String | 25000000121004 | 是 | 线缆id |
响应示例:
{
"code": 200,
"data": null
}
接口描述:传入线缆映射id,映射删除
URL地址:http://ip:port /wapi/v1 /bundled_links_mapping/{bundleLinksMappingId}/bundle_links_mapping_id
访问方法::Delete
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
bundleLinksMappingId | String | 53000000000177 | 是 | 映射id |
响应示例:
{
"code": 200,
"data": null
}
接口描述:接口已废弃。
转为新的子集映射接口,具体可查看子集映射Relations类
URL地址:http://ip:port /wapi/v1/right_bundled_links_mapping_child
访问方法::Get
接口描述:接口已废弃。
转为新的父级映射接口,具体可查看子集映射Relations类
URL地址:http://ip:port /wapi/v1/right_bundled_links_mapping_parent
访问方法::Get
接口描述:传入线缆id,查看线缆的映射关系
URL地址:http://ip:port /wapi/v1/bundled_links_mapping/{containerId}
访问方法::Get
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
containerId | String | 25000000134278 | 是 | 线缆id |
响应示例:
{
"code": 200,
"message": "success",
"data": {
"bundledLinks": [
{
"bundledLink": {
"id": 53000000000190,
"containerId": 25000000134278,
"linkId": 25000000134281,
"topLeftX": 220.0,
"topLeftY": 179.22520661157026,
"bottomRightX": 320.0,
"bottomRightY": 280.77479338842977
},
"linkDetails": {
"linkName": "管井管段\n光纤资源:通信井hole\\管井管段\n光纤资源:通信井hole",
"linkType": "八栅格"
}
}
],
"containerParent": []
}
}
接口描述:此接口已废弃。
原本是右侧线缆映射列表中,跳转到线缆起始节点位置的接口。传入线缆id,查看线缆起始节点
URL地址:http://ip:port /wapi/v1 /bundled_links_mapping/from_node/{linkEntityId}/link_id
访问方法::Get
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
linkEntityId | String | 25000000134278 | 是 | 线缆id |
接口描述:此接口已废弃。
原本是右侧线缆映射列表中,跳转到线缆起位置的接口。传入线缆id,查看线缆所属节点
URL地址:http://ip:port /wapi/v1 /bundled_links_mapping/{linkEntityId}/link_entity_id
访问方法::Get
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
linkEntityId | String | 25000000134278 | 是 | 线缆id |