[
{
"id": 110000,
"name": "布线",
"nodeClassGroupId": 0
},
{
"id": 110001,
"name": "安全",
"nodeClassGroupId": 0
}
]
接口描述:传入模型分类id,查询获取分类详细信息。
URL地址:http://ip:port /wapi/v1/node_class/{nodeClassId}/id
访问方法::Get
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
nodeClassId | Long | 110000 | 是 | 分类id |
{
"id": 110000,
"name": "布线",
"nodeClassGroupId": 0
}
接口描述:传入模型分类名称,查询获取分类详细信息。
URL地址:http://ip:port /wapi/v1/node_class/{nodeClassName}/name
访问方法::Get
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
nodeClassName | String | 布线 | 是 | 分类名称 |
{
"id": 110000,
"name": "布线",
"nodeClassGroupId": 0
}
接口描述:传入模型分组id,查询当前分组内的分类
URL地址:http://ip:port /wapi/v1/node_classAndgroup/{typeGroupId}
访问方法::Get
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
typeGroupId | Long | 11 | 是 | 模型分组id 1:节点 7:设备 8:机柜 11:板卡 12:连线 |
[
{
"id": 120000,
"subject": "服务器板卡",
"parent_ID": 0,
"parent_Subject": null
},
{
"id": 120001,
"subject": "配线架模块",
"parent_ID": 0,
"parent_Subject": null
},
{
"id": 120002,
"subject": "网络设备模块",
"parent_ID": 0,
"parent_Subject": null
}
]
接口描述:传入模型分类名称、模型分组id,如果是子分类则还需传入父级分类id,创建模型分类。
URL地址:http://ip:port /wapi/v1/node_class
访问方法::Post
请求参数:
Body参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
name | String | Test | 是 | 分类名称 |
nodeClassGroupId | Integer | 0 | 是 | 父级分类id,如果没有父级则传0 |
typeGroup | integer | 1 | 是 | 模型分组id 1:节点 7:设备 8:机柜 11:板卡 12:连线 |
{
"code": 200,
"data": {
"id": 110020,
"name": "test",
"nodeClassGroupId": 0
}
}
接口描述:传入模型分类id,删除模型分类。
URL地址:http://ip:port /wapi/v1/node_class/{nodeClassId}
访问方法::Delete
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
nodeClassId | Long | 110000 | 是 | 分类id |
{
"code": 200,
"message": "success",
"data": {
"id": 110020,
"name": "test",
"nodeClassGroupId": 0
}
}
接口描述:传入模型分类id和分类名称,修改分类名
URL地址:http://ip:port /wapi/v1/node_class/update/{nodeClassId}
访问方法::Put
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
nodeClassId | Long | 110000 | 是 | 分类id |
Body
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
name | String | test2 | 是 | 分类名称 |
{
"code": 200,
"message": "success",
"data": {
"id": 110020,
"name": "test2,
"nodeClassGroupId": 0
}
}