查询所有的抢插话规则
场景描述
查询所有的抢插话规则接口,查询条件:limit-每页记录数,page-当前页数,keyword-搜索关键字。
接口方法
POST
接口URI
https://域名/apiaccess/CCSQM/rest/ccisqm/v1/interposal-rules/queryInterposalRules,例如域名是service.besclouds.com
请求说明
| 序号 | 名称 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
| 1 | Content-Type | string | False | 固定填 application/json; charset=UTF-8。 |
| 2 | x-app-key | string | False | appKey标识 |
| 3 | Authorization | string | True | 鉴权字段,内容格式为: Bearer +tokenByAKSK接口的返回值中AccessToken(Bearer后有空格) |
| 4 | x-UserId | string | False | 操作员标识 可在登录后,进入员工管理页面,查看接口返回的userId |
| 序号 | 名称 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
| 1.1 | limit | number | True | 分页信息,每页记录数 |
| 1.2 | page | number | False | 分页信息,当前页数 |
| 1.3 | keyword | string(64) | False | 搜索关键字 |
响应说明
- 响应状态码: 200
| 序号 | 名称 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
| 1.1 | data | array[InterposalRule] | True | 规则集合 |
| 1.2 | paging | object | True | 分页信息对象 |
| 1.2.1 | total | number | True | 总记录数 |
| 1.3 | resultCode | string | True | 返回码,0405000表示成功,其他表示失败 |
| 1.4 | resultDesc | number | True | 返回的描述信息 |
- 响应状态码: 400
错误的请求:请检查请求路径及参数。
- 响应状态码: 401
未授权:1. 请确认是否购买了相关服务。 2. 请联系客服人员检查您账号的当前状态。
- 响应状态码: 404
请求的内容未找到:请检查请求的路径。
- 响应状态码: 500
业务失败:请依次确认您请求中各参数的取值。
错误码
无。
报文样例
- 场景描述:查询所有的抢插话规则接口
x-app-key:************************************ X-UserID:1611917095665261978 Authorization:Bearer ********************************
请求参数:
{ "limit": 10, "page": 1 }响应参数:
{ "data": [{ "score": "-1", "seconds": "2", "times": "3", "interposal_id": "894378242138443776", "name": "抢插话规则名称1" }, { "score": "-4", "seconds": "4", "times": "4", "interposal_id": "922992717770788864", "name": "test0611" }, { "score": "-4", "seconds": "4", "times": "4", "interposal_id": "922992795956809728", "name": "test0612" }, { "score": "-4", "seconds": "4", "times": "4", "interposal_id": "922993405183660032", "name": "test0613" }], "resultCode": "0405000", "paging": { "total": 4 }, "resultDesc": "操作成功" }