/basic-api/menu/all
开发中
GET
http://127.0.0.1:8000/basic-api/menu/all
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:8000/basic-api/menu/all'
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
array [object {7}]
必需
path
string
必需
component
string
必需
meta
object
必需
name
string
必需
redirect
string
必需
children
array [object {7}]
必需
id
integer
必需
Message
string
必需
示例
{
"code": 0,
"data": [
{
"path": "/",
"component": "BasicLayout",
"meta": {
"title": "page.dashboard.title",
"ignoreAuth": true,
"ignoreKeepAlive": true
},
"name": "Dashboard",
"redirect": "/analytics",
"children": [
{
"path": "/analytics",
"component": "/dashboard/analytics/index",
"meta": {
"title": "page.dashboard.analytics",
"icon": "bx:bx-home",
"ignoreAuth": true,
"ignoreKeepAlive": true
},
"name": "Analysis",
"id": 11
},
{
"path": "/workspace",
"component": "/dashboard/workspace/index",
"meta": {
"title": "page.dashboard.workspace",
"icon": "ion:grid-outline",
"ignoreAuth": true,
"ignoreKeepAlive": true
},
"name": "Workspace",
"id": 12
}
],
"id": 10
},
{
"path": "/demos",
"component": "BasicLayout",
"meta": {
"title": "page.demos.title",
"icon": "ic:baseline-view-in-ar",
"ignoreAuth": true,
"ignoreKeepAlive": true
},
"name": "BasicLayout",
"redirect": "/demos/access",
"children": [
{
"path": "access",
"meta": {
"title": "page.demos.access.title",
"icon": "mdi:shield-key-outline",
"ignoreAuth": true,
"ignoreKeepAlive": true
},
"name": "Access",
"redirect": "/demos/access/backend",
"children": [
{
"path": "backend",
"meta": {
"title": "page.demos.access.backend-control",
"icon": "mdi:cloud-key-outline",
"ignoreAuth": true,
"ignoreKeepAlive": true
},
"name": "AccessBackend",
"redirect": "/demos/access/backend/page-control",
"children": [
{
"path": "page-control",
"component": "/demos/access/backend/index",
"meta": {
"title": "page.demos.access.page",
"icon": "mdi:page-previous-outline",
"ignoreAuth": true,
"ignoreKeepAlive": true
},
"name": "AccessBackendPageControl",
"id": 16
},
{
"path": "button-control",
"component": "/demos/access/backend/button-control",
"meta": {
"title": "page.demos.access.button",
"icon": "mdi:button-cursor",
"ignoreAuth": true,
"ignoreKeepAlive": true
},
"name": "AccessBackendButtonControl",
"id": 17
},
{
"path": "access-test-1",
"component": "/demos/access/backend/access-test-1",
"meta": {
"title": "page.demos.access.access-test-1",
"icon": "mdi:button-cursor",
"ignoreAuth": true,
"ignoreKeepAlive": true
},
"name": "AccessBackendTest1",
"id": 18
}
],
"id": 15
}
],
"id": 14
}
],
"id": 13
}
],
"Message": "ok"
}
修改于 2024-07-28 19:19:14