- v1
- auth
- route
- system-manage
- miniapp
查看API树
GET
/api/v1/system-manage/apis/tree/
v1系统管理API管理
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/system-manage/apis/tree/' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
code
string
必需
msg
string
必需
data
array [object {3}]
必需
id
string
可选
summary
string
可选
children
array [object {3}]
可选
示例
{
"code": "0000",
"msg": "OK",
"data": [
{
"id": "parent$v1",
"summary": "v1",
"children": [
{
"id": "parent$权限认证",
"summary": "权限认证",
"children": [
{
"id": 4,
"summary": "自定义后端错误"
}
]
},
{
"id": "parent$路由管理",
"summary": "路由管理",
"children": [
{
"id": 6,
"summary": "查看用户路由菜单"
},
{
"id": 56,
"summary": "查看常量路由(公共路由)"
},
{
"id": 5,
"summary": "查看常量路由(公共路由)"
},
{
"id": 7,
"summary": "路由是否存在"
}
]
},
{
"id": "parent$系统管理",
"summary": "系统管理",
"children": [
{
"id": "parent$日志管理",
"summary": "日志管理",
"children": [
{
"id": 55,
"summary": "查看日志列表"
},
{
"id": 10,
"summary": "更新日志"
},
{
"id": 12,
"summary": "批量删除日志"
},
{
"id": 9,
"summary": "查看日志"
},
{
"id": 11,
"summary": "删除日志"
}
]
},
{
"id": "parent$API管理",
"summary": "API管理",
"children": [
{
"id": 16,
"summary": "创建API"
},
{
"id": 20,
"summary": "刷新API列表"
},
{
"id": 14,
"summary": "查看API"
},
{
"id": 13,
"summary": "查看API列表"
},
{
"id": 15,
"summary": "查看API树"
},
{
"id": 17,
"summary": "更新API"
},
{
"id": 18,
"summary": "删除API"
},
{
"id": 19,
"summary": "批量删除API"
}
]
},
{
"id": "parent$菜单管理",
"summary": "菜单管理",
"children": [
{
"id": 22,
"summary": "查看菜单树"
},
{
"id": 28,
"summary": "查看一级菜单"
},
{
"id": 21,
"summary": "查看用户菜单"
},
{
"id": 23,
"summary": "查看菜单"
},
{
"id": 24,
"summary": "创建菜单"
},
{
"id": 25,
"summary": "更新菜单"
},
{
"id": 26,
"summary": "删除菜单"
},
{
"id": 27,
"summary": "批量删除菜单"
},
{
"id": 29,
"summary": "查看菜单按钮树"
}
]
},
{
"id": "parent$角色管理",
"summary": "角色管理",
"children": [
{
"id": 30,
"summary": "查看角色列表"
},
{
"id": 32,
"summary": "创建角色"
},
{
"id": 34,
"summary": "删除角色"
},
{
"id": 36,
"summary": "查看角色菜单"
},
{
"id": 38,
"summary": "查看角色按钮"
},
{
"id": 40,
"summary": "查看角色API"
},
{
"id": 31,
"summary": "查看角色"
},
{
"id": 33,
"summary": "更新角色"
},
{
"id": 35,
"summary": "批量删除角色"
},
{
"id": 37,
"summary": "更新角色菜单"
},
{
"id": 39,
"summary": "更新角色按钮"
},
{
"id": 41,
"summary": "更新角色API"
}
]
},
{
"id": "parent$用户管理",
"summary": "用户管理",
"children": [
{
"id": 42,
"summary": "查看用户列表"
},
{
"id": 44,
"summary": "创建用户"
},
{
"id": 46,
"summary": "删除用户"
},
{
"id": 43,
"summary": "查看用户"
},
{
"id": 47,
"summary": "批量删除用户"
},
{
"id": 45,
"summary": "更新用户"
}
]
}
]
}
]
}
]
}
修改于 2024-05-17 05:45:08