数据清洗/标准化接口调用
开发中
POST
http://10.0.0.53:8095/generate
http://10.0.0.53:8095/generate
headers中须携带token 为 ‘infoyb- ’的请求头认证信息,否则返回
{
"error": "Unauthorized"
}
处理数据通过json格式参数传递到后端,即Content-Type=application/json;具体见事例
curl --location --request POST 'http://10.0.0.53:8095/generate'
--header 'token: infoyb-'
--header 'Content-Type: application/json'
--data-raw '{
"src_text": [
"O型圈",
"六角螺栓"
]
}'
curl --location --request POST 'http://10.0.0.53:8095/generate'
--header 'token: infoyb-'
--header 'Content-Type: application/json'
--data-raw '{
"src_path": "C:\Users\wo\Desktop\test_clear_api.xlsx",
"process_type": "1"
}'
请求参数
Body 参数application/json