分页查询
开发中
GET
/admin/client/page
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
current
string
当前页面
示例值:
1
size
string
每页数据大小
示例值:
10
clientId
string
客户端id
clientSecret
string
客户端密钥
Header 参数
Authorization
string
必需
示例值:
Bearer 092328bf-7d5a-457e-8994-51f1c5506766
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://devapi.maicanbao.com/admin/client/page?current=1&size=10&clientId&clientSecret' \
--header 'Authorization: Bearer 092328bf-7d5a-457e-8994-51f1c5506766'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
null
必需
data
object
必需
records
array [object {20}]
客户端信息列表
total
integer
必需
size
integer
必需
current
integer
必需
pages
integer
必需
ok
boolean
必需
示例
{
"code": 0,
"msg": null,
"data": {
"records": [
{
"id": "1",
"clientId": "pt",
"clientSecret": "pt",
"resourceIds": null,
"scope": "server",
"authorizedGrantTypes": [
"password",
"refresh_token",
"authorization_code",
"client_credentials",
"mobile"
],
"webServerRedirectUri": "https://www.baidu.com/",
"authorities": null,
"accessTokenValidity": 43200,
"refreshTokenValidity": 2592001,
"additionalInformation": "{\"enc_flag\":\"1\",\"captcha_flag\":\"0\",\"online_quantity\":\"1\"}",
"autoapprove": "true",
"delFlag": "0",
"createBy": "",
"updateBy": "admin",
"createTime": null,
"updateTime": "2023-03-08 11:32:41"
},
{
"id": "2",
"clientId": "mini",
"clientSecret": "mini",
"resourceIds": null,
"scope": "server",
"authorizedGrantTypes": [
"password",
"mobile"
],
"webServerRedirectUri": null,
"authorities": null,
"accessTokenValidity": 160000000,
"refreshTokenValidity": 160000000,
"additionalInformation": "{\"captcha_flag\":\"0\",\"enc_flag\":\"0\",\"online_quantity\":\"1\"}",
"autoapprove": "true",
"delFlag": "0",
"createBy": "admin",
"updateBy": "admin",
"createTime": "2023-01-29 16:38:06",
"updateTime": "2023-01-29 17:21:56"
},
{
"id": "3",
"clientId": "manage",
"clientSecret": "manage",
"resourceIds": null,
"scope": "server",
"authorizedGrantTypes": [
"password",
"refresh_token"
],
"webServerRedirectUri": null,
"authorities": null,
"accessTokenValidity": 43200,
"refreshTokenValidity": 2592001,
"additionalInformation": "{\"enc_flag\":\"1\",\"captcha_flag\":\"0\"}",
"autoapprove": "true",
"delFlag": "0",
"createBy": " ",
"updateBy": " ",
"createTime": null,
"updateTime": null
},
{
"id": "4",
"clientId": "h5",
"clientSecret": "h5",
"resourceIds": null,
"scope": "server",
"authorizedGrantTypes": [
"password",
"refresh_token"
],
"webServerRedirectUri": null,
"authorities": null,
"accessTokenValidity": 43200,
"refreshTokenValidity": 2592001,
"additionalInformation": "{\"enc_flag\":\"1\",\"captcha_flag\":\"0\"}",
"autoapprove": "true",
"delFlag": "0",
"createBy": " ",
"updateBy": " ",
"createTime": null,
"updateTime": null
}
],
"total": 4,
"size": 10,
"current": 1,
"pages": 1
},
"ok": true
}