文档
测试

updateKeywords

PUT
http://{ip}:{port}/api/v1/keyword

接口描述

内容发布或更新(审核通过)时 即时调用,本期实现 从业务 到 推荐系统的调用即可,keywords数据上云后续调优完成

请求参数

application/json
参数名
类型
描述
必填
paragraphId
int
for example 194
必填

响应参数

参数名
类型
描述
必填
status
int
200 suceeded, otherwise failed
必填
requestId
int
1,2,3...
必填
result
[string]
list of string, for example ['金属', '机床']
必填
errMsg
string
error message, empty when status is 200 succ
必填

example

request: curl -X PUT-H "Content-Type: application/json" -d '{"paragraphID" : 194}' "http://123.60.43.18:9009/api/v1/keyword" response: {'status': 200, 'requestId': 3, 'result': ['金属', '机床'], 'errMsg': ''}