

###
POST {{baseUrl}}/db/importDb
Content-Type: multipart/form-data; boundary=WebAppBoundary

--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="file.sql"

< ./base.sql
--WebAppBoundary--


###上传数据库文件

POST {{baseUrl}}/file/commonupload
Content-Type: multipart/form-data; boundary=WebAppBoundary

--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="file.sql"

< ./base.sql
--WebAppBoundary--

###上传资源文件

POST {{baseUrl}}/file/commonupload
Content-Type: multipart/form-data; boundary=WebAppBoundary

--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="file.zip"

< ./file.zip
--WebAppBoundary--



###上传音频文件1
POST {{baseUrl}}/audio/upload
Content-Type: multipart/form-data; boundary=WebAppBoundary

--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="recording.pcm"

< ./recording.pcm
--WebAppBoundary--

###测试链接数据库
POST {{baseUrl}}/m/db/connect
Content-Type: application/json

{
  "dbHost": "localhost",
  "dbName": "base-platform",
  "dbPort": "3306",
  "userName": "root",
  "password": "12345678"
}



###测试机器人请求数据
POST {{baseUrl}}/api/trans
Content-Type: application/json

{
  "sn": "111",
  "query": "222",
  "user_semantics": {
    "client_id": "333",
    "enterprise_id": "444",
    "deviceid": "5555",
    "lang_str": "666"
  },
  "query_semantics": {
    "entity": [
      {
        "text": "7777",
        "value": "888",
        "tag": "999",
        "start_pos": "000"
      }
    ]
  }
}



###chat_msg
POST {{baseUrl}}/chat_msg/base_chat
Content-Type: application/json

{
  "query":"你好",
  "sessionId": "123"
}

###测试机器人响应json数据
POST {{baseUrl}}/api/transform
Content-Type: application/json
{
    "status": 1,
    "query": "",
    "sn": "",
    "nlp": [
        {
            "domain": "",
            "english_domain": "",
            "intent": "",
            "action": "",
            "slots": {
                "answer": ""
            },
            "source": "",
            "agent": "",
            "feed": {
                "confidence": "",
                "source": "",
                "image": [
                    {
                        "src": ""
                    }
                ],
                "video": [
                    {
                        "src": ""
                    }
                ],
                "audio": [
                    {
                        "src": ""
                    }
                ],
                "custom": [
                    {
                        "type": ""
                    }
                ],
                "relate": [
                    {
                        "text": "",
                        "score": "",
                        "src": ""
                    }
                ],
                "button": [
                    {
                        "text": "",
                        "link": ""
                    }
                ]
            }
        }
    ]
}

