Closed hklhai closed 5 years ago
@aym19900825 以下接口测试均通过
POST http://192.168.1.140:8090/show/dashboardAdd { "dashboardname": "上映电影", "dashboardshowname": "cpcc-上映电影", "businesscategory": "市场分析" }
Return: { "code": 1, "message": "Add Success!" }
Tip: dashboardname不允许重名 已存在返回 { "code": 0, "message": "Already exists!" }
POST http://192.168.1.140:8090/show/dashboard/2
Return: { "bid": 2, "dashboardname": "上映电影1", "dashboarddescription": null, "dashboardshowname": "cpcc-上映电影1", "type": null, "businesscategory": "市场分析1" }
POST http://192.168.1.140:8090/show/dashboardVisualize { "bid": 3, "locationList": [ { "vid": 18, "x": 2, "y": 3, "h": 4, "w": 8, "did": "" }, { "vid": 19, "x": 6, "y": 7, "h": 8, "w": 9, "did": "" } ], "deleteList": [2,3,4] }
Return: { "code": 1, "message": "Add Success!" } Tip:如果visualize与dashboard关系已经存在返回已存在 { "code": 0, "message": "Already exists!" }
POST http://192.168.1.140:8090/show/dashboardData { "integerId": 1 }
Return: { "showDtoList": [ { "visualizename": "BNOP-double", "xname": null, "yname": null, "showKey": "[1, 2, 3, 4, 5, 6, 7]", "showValue": "[1.1, 2.4, 4.7, 5.8, 7.9, 9.9, 13.5]" }, { "visualizename": "BNOP-line_test", "xname": null, "yname": null, "showKey": "[1, 2, 3, 4, 5]", "showValue": "[1.1, 2.4, 4.7, 5.8, 7.9]" } ], "dashboardshowname": "cpcc-上映电影", "businesscategory": "市场分析" }
@aym19900825 以下接口测试均通过
DashBoard添加
POST http://192.168.1.140:8090/show/dashboardAdd { "dashboardname": "上映电影", "dashboardshowname": "cpcc-上映电影", "businesscategory": "市场分析" }
Return: { "code": 1, "message": "Add Success!" }
Tip: dashboardname不允许重名 已存在返回 { "code": 0, "message": "Already exists!" }
dashboard信息获取
POST http://192.168.1.140:8090/show/dashboard/2
Return: { "bid": 2, "dashboardname": "上映电影1", "dashboarddescription": null, "dashboardshowname": "cpcc-上映电影1", "type": null, "businesscategory": "市场分析1" }
visualize绑定dashboard
POST http://192.168.1.140:8090/show/dashboardVisualize { "bid": 3, "locationList": [ { "vid": 18, "x": 2, "y": 3, "h": 4, "w": 8, "did": "" }, { "vid": 19, "x": 6, "y": 7, "h": 8, "w": 9, "did": "" } ], "deleteList": [2,3,4] }
Return: { "code": 1, "message": "Add Success!" } Tip:如果visualize与dashboard关系已经存在返回已存在 { "code": 0, "message": "Already exists!" }
dashboard中数据获取
POST http://192.168.1.140:8090/show/dashboardData { "integerId": 1 }
Return: { "showDtoList": [ { "visualizename": "BNOP-double", "xname": null, "yname": null, "showKey": "[1, 2, 3, 4, 5, 6, 7]", "showValue": "[1.1, 2.4, 4.7, 5.8, 7.9, 9.9, 13.5]" }, { "visualizename": "BNOP-line_test", "xname": null, "yname": null, "showKey": "[1, 2, 3, 4, 5]", "showValue": "[1.1, 2.4, 4.7, 5.8, 7.9]" } ], "dashboardshowname": "cpcc-上映电影", "businesscategory": "市场分析" }