作者:管理员 历史版本:1 最后编辑:龚清 更新时间:2024-09-20 15:13
审核接口授权
简述:
- 审核接口授权
请求URL:
- http://ip:port/ibps/platform/v3/auth/api/grant/audit
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
id | string | 是 | 主键 | ||
apiUrl | string | 是 | apiUrl | ||
grantType | string | 是 | 授权类型 | ||
grantKey | string | 是 | 授权标识 | ||
appKey | string | 是 | APP标识 | ||
apiKey | string | 是 | API标识 | ||
limit | long | 是 | 频次,非负整数,0标识不限制 | ||
testLimit | long | 否 | 测试频次,非负整数,0标识不限制; | ||
status | string | 否 | 状态:pendding/effect/expired | ||
createBy | string | 是 | 创建人 | ||
createTime | date | 是 | 申请时间 | ||
expireTime | date | 否 | 过期时间 | ||
auditBy | string | 否 | 审核人 | ||
auditTime | date | 否 | 审核时间 | ||
cause | string | 否 | 理由 |
请求参数示例:
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654620507647246336",
"createTime": "2019-12-12",
"updateBy": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "654746327116152832",
"grantType": "user",
"grantKey": "Bella",
"appKey": "cstj",
"apiKey": "cptj",
"limit": 120,
"testLimit": 60,
"status": "pendding",
"expireTime": "2020-12-12",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "hh"
}
返回示例:
{
"state": 200,
"request": null,
"message": "审核接口授权成功",
"cause": "",
"variables": {
"id": "654746327116152832"
},
"data": null
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void |
批量审核接口授权
简述:
- 批量审核接口授权
请求URL:
- http://ip:port/ibps/platform/v3/auth/api/grant/audit/batch
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
authApiGrantIds | string[] | 是 | 审核接口授权id数组 | ||
cause | string | 否 | 审核不通过 | 不通过原因 | |
nopass | string | 否 | 不通过标识 |
- Body:
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/auth/api/grant/audit/batch?authApiGrantIds=654742599583662080,654675355973451776&cause=审核不通过
返回示例:
{
"state": 200,
"request": null,
"message": "审核接口授权成功",
"cause": "",
"variables": {},
"data": null
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void |
查询生效的接口授权
简述:
- 根据传入授权类型及授权标识查询,并返回生效的接口授权信息
请求URL:
- http://ip:port/ibps/platform/v3/auth/api/grant/findByGrantTypeGrantKey
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
grantKey | String | 是 | 接口授权标识 | ||
grantType | String | 是 | 接口授权类型 |
- Body:
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/auth/api/grant/findByGrantTypeGrantKey?grantKey=sysFile&grantType=res
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": [
{
"pk": "",
"name": null,
"ip": null,
"createBy": "1",
"createTime": "2019-12-12",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "654689736778055680",
"grantType": "res",
"grantKey": "sysFile",
"appKey": "ibps-platform-provider",
"apiKey": "file_attachment_modifyName",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2020-12-12",
"auditBy": "1",
"auditTime": "2019-12-12",
"cause": "审核通过!",
"apiUrl": "/file/attachment/modifyName"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "1",
"createTime": "2019-12-12",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "654690306146435072",
"grantType": "res",
"grantKey": "sysFile",
"appKey": "ibps-platform-provider",
"apiKey": "file_attachment_query",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2020-12-12",
"auditBy": "1",
"auditTime": "2019-12-12",
"cause": "审核通过!",
"apiUrl": "/file/attachment/query"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "1",
"createTime": "2019-12-12",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "654690305739587584",
"grantType": "res",
"grantKey": "sysFile",
"appKey": "ibps-platform-provider",
"apiKey": "file_attachment_remove",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2020-12-12",
"auditBy": "1",
"auditTime": "2019-12-12",
"cause": "审核通过!",
"apiUrl": "/file/attachment/remove"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "1",
"createTime": "2019-12-12",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "654690305940914176",
"grantType": "res",
"grantKey": "sysFile",
"appKey": "ibps-platform-provider",
"apiKey": "file_downloadByPath",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2020-12-12",
"auditBy": "1",
"auditTime": "2019-12-12",
"cause": "审核通过!",
"apiUrl": "/file/downloadByPath"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "1",
"createTime": "2019-12-12",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "654689615822716928",
"grantType": "res",
"grantKey": "sysFile",
"appKey": "ibps-platform-provider",
"apiKey": "file_upload",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2020-12-12",
"auditBy": "1",
"auditTime": "2019-12-12",
"cause": "审核通过!",
"apiUrl": "/file/upload"
}
]
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< AuthApiGrantPo > | API授权对象信息列表 |
查询
简述:
- 根据传入id查询,并返回接口授权信息
请求URL:
- http://ip:port/ibps/platform/v3/auth/api/grant/get
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
authApiGrantId | String | 是 | 接口授权id |
- Body:
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/auth/api/grant/get?authApiGrantId=654689615822716928
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": {
"pk": "",
"name": null,
"ip": null,
"createBy": "1",
"createTime": "2019-12-12",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "654689615822716928",
"grantType": "res",
"grantKey": "sysFile",
"appKey": "ibps-platform-provider",
"apiKey": "file_upload",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2020-12-12",
"auditBy": "1",
"auditTime": "2019-12-12",
"cause": "审核通过!",
"apiUrl": "/file/upload"
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | AuthApiGrantPo | API授权对象信息 |
申请接口授权
简述:
- 申请接口授权
请求URL:
- http://ip:port/ibps/platform/v3/auth/api/grant/grant/save
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
apiArrayStr | string | 是 | 授权接口 | ||
grantKey | string | 是 | 授权标识 | ||
grantType | string | 是 | 授权类型 |
请求参数示例:
{
"grantKey": "tom",
"grantType": "user",
"apiArrayStr": "[{\"appKey\":\"ibps-platform-provider\",\"apiKey\":\"user_findByPartyRelationAlias\",\"apiUri\":\"/user/findByPartyRelationAlias\",\"limit\":120,\"testLimit\":60}]"
}
返回示例:
{
"state": 200,
"request": null,
"message": "接口授权成功",
"cause": "",
"variables": {},
"data": null
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void |
判断接口是否匿名访问
简述:
- 根据传入接口地址,判断是否存在接口授权匿名
请求URL:
- http://ip:port/ibps/platform/v3/auth/api/grant/has/anonymous/api/grant
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
uri | String | 是 | 接口地址 |
- Body:
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/auth/api/grant/has/anonymous/api/grant?uri=/bo/def/checkAttrCode
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": false
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Boolean |
判断接口授权
简述:
- 根据传入接口地址,判断是否存在接口授权。应用接入标识、用户账号至少必填一个参数.
请求URL:
- http://ip:port/ibps/platform/v3/auth/api/grant/has/api/grant
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
account | String | 否 | 用户账号 | ||
clientId | String | 否 | 应用接入标识 | ||
uri | String | 是 | 接口地址 |
- Body:
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/auth/api/grant/has/api/grant?clientId=ibps&uri=/bo/def/copy
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": false
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Boolean |
记录接口调用
简述:
- 根据传入接口地址,记录接口调用情况。应用接入标识、用户账号至少必填一个参数.
请求URL:
- http://ip:port/ibps/platform/v3/auth/api/grant/log/apiInvoke
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
fullName | string | 否 | fullName | ||
id | string | 是 | 主键 | ||
uri | string | 是 | 请求地址 | ||
clientKey | string | 是 | 授权标识 | ||
account | string | 是 | 用户账号 | ||
status | string | 是 | 状态:Y/N | ||
createTime | date | 是 | 调用时间时间 | ||
cause | string | 否 | 理由 |
请求参数示例:
{
"pk": "",
"name": null,
"ip": "192.168.3.111",
"createBy": null,
"createTime": "2019-12-17 17:55:23",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555054970437632",
"uri": "/auth/api/grant/grant/save",
"clientKey": "ibps",
"account": "huangcy",
"status": "Y",
"cause": "Super request",
"fullName": "黄春艳"
}
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": null
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void |
接口授权列表数据
简述:
- 接口授权列表数据
请求URL:
- http://ip:port/ibps/platform/v3/auth/api/grant/query
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 |
请求参数示例:
{
"parameters": [],
"requestPage": {
"pageNo": 1,
"limit": 20
},
"sorts": []
}
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": {
"dataResult": [
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555347678330880",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "attr_findByPartyTypeUserId4Edit",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/attr/findByPartyTypeUserId4Edit"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555347573473280",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "attr_findByPartyTypeUserId4Get",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/attr/findByPartyTypeUserId4Get"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555347468615680",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "attr_findByTypeAndPartyType",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/attr/findByTypeAndPartyType"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555347363758080",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "attr_get",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/attr/get"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555347258900480",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "attr_load",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/attr/load"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555347154042880",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "attr_opt_findByAttrId",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/attr/opt/findByAttrId"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555347049185280",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "attr_query",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/attr/query"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555346944327680",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "attr_remove",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/attr/remove"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555346839470080",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "attr_save",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/attr/save"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555346734612480",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "auth_api_grant_audit",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/auth/api/grant/audit"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555346629754880",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "auth_api_grant_audit_batch",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/auth/api/grant/audit/batch"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555346294210560",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "auth_api_grant_findByGrantTypeGrantKey",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/auth/api/grant/findByGrantTypeGrantKey"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555327721832448",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "auth_api_grant_get",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/auth/api/grant/get"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555327616974848",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "auth_api_grant_grant_save",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/auth/api/grant/grant/save"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555327512117248",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "auth_api_grant_has_anonymous_api_grant",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/auth/api/grant/has/anonymous/api/grant"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555327407259648",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "auth_api_grant_has_api_grant",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/auth/api/grant/has/api/grant"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555327302402048",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "auth_api_grant_log_apiInvoke",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/auth/api/grant/log/apiInvoke"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555327197544448",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "auth_api_grant_query",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/auth/api/grant/query"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555327126241280",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "auth_api_grant_remove",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/auth/api/grant/remove"
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-17",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "656555327021383680",
"grantType": "role",
"grantKey": "xsjs",
"appKey": "ibps-platform-provider",
"apiKey": "auth_api_grant_save",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2029-12-17",
"auditBy": null,
"auditTime": null,
"cause": null,
"apiUrl": "/auth/api/grant/save"
}
],
"pageResult": {
"limit": 20,
"page": 1,
"totalCount": 3776,
"totalPages": 189
}
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | APIPageList< AuthApiGrantPo > | API授权对象信息列表 |
删除(批量)
简述:
- 删除接口授权记录
请求URL:
- http://ip:port/ibps/platform/v3/auth/api/grant/remove
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
authApiGrantIds | string[] | 是 | 接口授权id数组 |
- Body:
暂无
请求参数示例:
http://192.168.3.230:15100/ibps/platform/v3/auth/api/grant/remove?authApiGrantIds=654630146732457984
返回示例:
{
"state": 200,
"request": null,
"message": "删除接口授权成功",
"cause": "",
"variables": {},
"data": null
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void |
保存
简述:
- 保存接口授权信息
请求URL:
- http://ip:port/ibps/platform/v3/auth/api/grant/save
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
id | string | 是 | 主键 | ||
apiUrl | string | 是 | apiUrl | ||
grantType | string | 是 | 授权类型 | ||
grantKey | string | 是 | 授权标识 | ||
appKey | string | 是 | APP标识 | ||
apiKey | string | 是 | API标识 | ||
limit | long | 是 | 频次,非负整数,0标识不限制 | ||
testLimit | long | 否 | 测试频次,非负整数,0标识不限制; | ||
status | string | 否 | 状态:pendding/effect/expired | ||
createBy | string | 是 | 创建人 | ||
createTime | date | 是 | 申请时间 | ||
expireTime | date | 否 | 过期时间 | ||
auditBy | string | 否 | 审核人 | ||
auditTime | date | 否 | 审核时间 | ||
cause | string | 否 | 理由 |
请求参数示例:
{
"pk": "",
"name": null,
"ip": null,
"createBy": "654620507647246336",
"createTime": "2019-12-12",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "654746327116152832",
"grantType": "user",
"grantKey": "Bella",
"appKey": "cstj",
"apiKey": "cptj",
"limit": 120,
"testLimit": 60,
"status": "effect",
"expireTime": "2020-12-12",
"auditBy": "654384477392338944",
"auditTime": "2019-12-17",
"cause": "审核通过!",
"apiUrl": "hh"
}
返回示例:
{
"state": 200,
"request": null,
"message": "保存接口授权成功",
"cause": "",
"variables": {
"clientKey": "Bella",
"id": "654746327116152832"
},
"data": null
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void |
备注
- [1] : APIRequest为动态查询请求对象,详情请移步全局请求格式