错误 #26349
sop管理-新增页,添加草稿状态sop,标准操作知识内容必填项为空,接口返回提示信息不准确
0%
描述
接口路径:https://gapmsit.persagy.com/sop/restSopService/addDraftSop
header:
header:{
"Content-Type":"application/json;charset=utf-8",
"groupCode":"apiauto"
}
入参:
{
"user_id": "835afc48cb384a2fbacc790c13e8af97",
"project_id": "Pj6110000001",
"work_type": "3",
"operator": {
"id": "RY1610165864729063425",
"name": "接口自动化"
},
"sop_name": "ApiTesteY0U",
"steps": [{
"name": "第1步",
"id": 0,
"step_content": [{
"from_sop": false,
"confirm_result": [{
"description": ""
}]
}],
"from_sop": false
}]
}
响应:
{"ResultMsg":"description不能为空","ResultCode":"A0400","Result":"failure"}
预期结果:
{"ResultMsg":"steps参数不合法","ResultCode":"A0400","Result":"failure"}
实际结果:
{"ResultMsg":"description不能为空","ResultCode":"A0400","Result":"failure"}
历史记录
由 王晓 更新于 12 个月 之前
接口路径:https://gapmsit.persagy.com/sop/restSopService/addDraftSop
header:
header:{
"Content-Type":"application/json;charset=utf-8",
"groupCode":"apiauto"
}
入参:
{
"user_id": "835afc48cb384a2fbacc790c13e8af97",
"project_id": "Pj6110000001",
"work_type": "3",
"operator": {
"id": "RY1610165864729063425",
"name": "接口自动化"
},
"sop_name": "ApiTesteY0U",
"steps": [{
"name": "第1步",
"id": 0,
"step_content": [{
"from_sop": false,
"confirm_result": [{
"description": ""
}]
}],
"from_sop": false
}]
}
响应:{"ResultMsg":"steps参数不合法","ResultCode":"A0400","Result":"failure"}
预期结果:
{"ResultMsg":"description不能为空","ResultCode":"A0400","Result":"failure"}
实际结果:
{"ResultMsg":"steps参数不合法","ResultCode":"A0400","Result":"failure"}