diff --git a/dramaeditor/intent_search.md b/dramaeditor/intent_search.md new file mode 100644 index 0000000..41181c4 --- /dev/null +++ b/dramaeditor/intent_search.md @@ -0,0 +1,59 @@ +BaseURL: https://hw-gz26.heyqiwu.cn + +##### 获取领域配置 + +URL: {backUrl}/api/juben/intent/query + +METHOD: POST + +RequestHeaders: + +| key | value | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | +| Authorization | TOKEN | + +RequestBody: + +``` +{ + "sents":[ + "愿意陪伴", + "没兴趣陪伴你", + "看看我" + ] +} +``` + +ResponseBody: + +``` +SUCCESS: +{ + "code": 1, + "msg": "成功", + "data": [ + { + "id": "SHOPPING", + "name": "购物" + }, + { + "id": "OTHER", + "name": "其他" + } + ] +} +``` + +Example: +``` +curl --location --request POST 'https://hw-gz26.heyqiwu.cn/api/juben/intent/query' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "sents":[ + "愿意陪伴", + "没兴趣陪伴你", + "看看我" + ] +}' +``` \ No newline at end of file