从工业平台中查询企业的质量管控能力
路径 | /industry/qualification/quality/capability/get |
版本号 | 1.0.0 |
协议 | HTTPS |
请求方法 | POST |
是否需要用户身份鉴权 | 可选 |
超时时间 | 5000 |
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
appId | String | 是 | 应用的appId值 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
code | Int |
code |
|
data | JSON |
data |
|
hasCtl | String |
是否有质量管理部门 |
|
hasTest | String |
是否对生产过程进行检验 |
|
testStd | String |
成品检验标准 |
|
passPercent | String |
成品过程检验占比 |
|
type | String |
质检类型 |
|
hasCfg | String |
是否有质检配置 |
|
message | String |
message |
示例
请求示例
{
"id": "1509086454180",
"version": "1.0",
"request":{
"apiVer": "1.0.0"
},
"params":{
"appId": "value0"
}
}
正常返回示例
JSON
格式
{
"id": "4de2c367-c1db-417c-aa15-8c585e595d92",
"code": 200,
"message": null,
"localizedMsg": null,
"data": {
"hasCfg":"yes",
"hasCtl":"no",
"hasTest":"yes",
"passPercent":"14",
"testStd":"成品检验标准",
"type":"commit"
}
}
异常返回示例
JSON
格式
{
"id": "37f7e5fa-d6a5-4efe-8abf-5bf23dca6284",
"code": 403,
"message": "request forbidden.",
"localizedMsg": "请求被禁止",
"data": null
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
500 | 500 | Internal Error | Internal Error |
503 | 503 | Service Unavailable | Service Unavailable |
403 | 403 | Request Limited | Request Limited |
401 | 401 | Empty Signature | Empty Signature |
400 | 400 | Request Format Error | Request Format Error |
200 | 20003 | Find Backend Error | Find Backend Error |
200 | 20004 | Backend Service Error | Backend Service Error |
200 | 20055 | Backend Service Invalid | Request Format Error |
200 | 20056 | Hsf Invoke Timeout | Hsf Invoke Timeout |
200 | 401 | Request Authorized Error | Request Authorized Error |
200 | 403 | Request Forbidden | Request Forbidden |
200 | 500 | Server Error | Server Error |