BASE_URL: http://didi-gz4.jiaoyou365.com ###### 获取服务器列表 URL: BASE_URL:18083/api/servers METHOD: GET Headers: Parameter | Type | Description | :----------- | :------: | ------------: | | Authorization | token | 用户token | ResponseBody: ``` { "code": 1, "msg": "成功", "data": [ { "id": 1, "name": "gz3" } ] } ``` ###### 同步语义关系 URL: BASE_URL:18083/api/sync/conditions METHOD: POST RequestBody: ``` { "note":"test", // 注释 "serverId":1 // 服务器ID } ``` Headers: Parameter | Type | Description | :----------- | :------: | ------------: | | Content-Type | application/json;charset=UTF-8 | | | Authorization | token | 用户token | ResponseBody: ``` { "code": 1, "msg": "成功", "data": null } ``` ###### 获取语义关系部署记录 URL: BASE_URL:18083/api/sync/conditions/record?page=0&pageSize=20 METHOD: GET Headers: Parameter | Type | Description | :----------- | :------: | ------------: | | Authorization | token | 用户token | ResponseBody: ``` { "code": 1, "msg": "成功", "data": { "historys": [ { "serverName": "gz3", "updateSemanticRelationNames": [ "回答什么是什么之主宾" ], "note": "jinfengli测试", "status": "完成", "gmtCreate": 1585119280000 }, { "serverName": "gz3", "updateSemanticRelationNames": [], "note": "jinfengli测试", "status": "远程服务器异常,该服务器已经被设置为禁止更新服务!", "gmtCreate": 1585116480000 } ], "count": 2 } } ```