遍历所有业务
请求地址: GET /businesses
接口说明
- 分页遍历所有业务
请求参数
- Query
参数名 类型 必需 示例值 说明 offset integer 否 0 起始下标 limit integer 否 50 范围(小于1000,默认50)
请求示例
GET https://back-office-api.bitanswer.cn/bitanswer/api/businesses?offset=0&limit=2
bitkey: xxx
响应示例
{
"status": 0,
"data": {
"items": [
{
"name": "win-cloud-account"
},
{
"name": "DEFAULT_CLIENT_NAME"
}
]
}
}
按条件检索业务
请求地址: POST /businesses/data
接口说明
- 使用查询参数检索符合条件的业务
请求参数
- Query
参数名 类型 必需 示例值 说明 offset integer 否 0 起始下标 limit integer 否 50 范围(小于1000,默认50) - Body
参数名 类型 必需 中文名 querys array 否 查询条件 sorts array 否 排序条件
支持的参数见下表
参数名 类型 检索类型 必需 中文名 name string query|sort 否 业务名称 type string query 否 业务类型(不区分大小写)
请求示例
POST https://back-office-api.bitanswer.cn/bitanswer/api/businesses/data?offset=0&limit=10
bitkey: xxx
Content-Type: application/json
{
"querys":[
{
"name":"type",
"op":"=",
"values":[
"bit_id",
"Pre"
]
}
]
}
响应示例
{
"status": 0,
"data": {
"total": 2,
"items": [
{
"guid": "8fbadc77593c4033acc9938a527c90ab",
"name": "BitID业务",
"type": "BIT_ID"
},
{
"guid": "6ffd2eadbcc315aa15b6cbad",
"name": "预授权业务",
"type": "PRE"
}
]
}
}