- v1
- auth
- route
- system-manage
- miniapp
查看API列表
POST
/api/v1/system-manage/apis/all
/api/v1/system-manage/apis/all
v1系统管理API管理
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{token}}
Body 参数application/json
current
integer
页码
size
integer
每页数量
logType
string
日志类型
byUser
string
用户
logDetailType
string
日志详细
requestUrl
string
请求URL
timeRange
array[string]
创建时间
responseCode
string
响应业务码
xRequestId
string
x-request-id
示例
{
"current": 1,
"size": 10,
"logType": "2",
"byUser": "1",
"logDetailType": "1101",
"requestUrl": "2",
"timeRange": [
1734883200000,
1734969599000
],
"responseCode": "3",
"xRequestId": "3"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/system-manage/apis/all' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"current": 1,
"size": 10,
"logType": "2",
"byUser": "1",
"logDetailType": "1101",
"requestUrl": "2",
"timeRange": [1734883200000,1734969599000],
"responseCode": "3",
"xRequestId": "3"
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
msg
string
必需
data
object
必需
records
array [object {6}]
必需
total
integer
必需
current
integer
必需
size
integer
必需
示例
{
"code": "0000",
"msg": "OK",
"data": {
"records": [
{
"tags": "v1|路由管理",
"summary": "查看常量路由(公共路由)",
"status": "1",
"method": "get",
"id": 5,
"path": "/api/v1/route/constant-routes"
},
{
"tags": "v1|路由管理",
"summary": "查看用户路由菜单",
"status": "1",
"method": "get",
"id": 6,
"path": "/api/v1/route/user-routes"
},
{
"tags": "v1|路由管理",
"summary": "路由是否存在",
"status": "1",
"method": "get",
"id": 7,
"path": "/api/v1/route/{route_name}/exists"
},
{
"tags": "v1|权限认证",
"summary": "登录",
"status": "1",
"method": "post",
"id": 1,
"path": "/api/v1/auth/login"
},
{
"tags": "v1|权限认证",
"summary": "刷新认证",
"status": "1",
"method": "post",
"id": 2,
"path": "/api/v1/auth/refreshToken"
},
{
"tags": "v1|权限认证",
"summary": "查看用户信息",
"status": "1",
"method": "get",
"id": 3,
"path": "/api/v1/auth/getUserInfo"
},
{
"tags": "v1|权限认证",
"summary": "自定义后端错误",
"status": "1",
"method": "get",
"id": 4,
"path": "/api/v1/auth/error"
},
{
"tags": "v1|系统管理|API管理",
"summary": "查看API列表",
"status": "1",
"method": "get",
"id": 13,
"path": "/api/v1/system-manage/apis"
},
{
"tags": "v1|系统管理|API管理",
"summary": "查看API",
"status": "1",
"method": "get",
"id": 14,
"path": "/api/v1/system-manage/apis/{api_id}"
},
{
"tags": "v1|系统管理|API管理",
"summary": "查看API树",
"status": "1",
"method": "get",
"id": 15,
"path": "/api/v1/system-manage/apis/tree/"
}
],
"total": 47,
"current": 1,
"size": 10
}
}
🟠422Validation Error
修改于 2024-12-23 03:17:21