mirror of
https://github.com/apache/superset.git
synced 2026-08-04 04:52:32 +00:00
69 lines
1.9 KiB
JSON
69 lines
1.9 KiB
JSON
{
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"result": {
|
|
"description": "Menu items in a forest like data structure",
|
|
"items": {
|
|
"properties": {
|
|
"childs": {
|
|
"items": { "type": "object" },
|
|
"type": "array"
|
|
},
|
|
"icon": {
|
|
"description": "Icon name to show for this menu item",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"description": "Pretty name for the menu item",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "The internal menu item name, maps to permission_name",
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"description": "The URL for the menu item",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"example": {
|
|
"result": [
|
|
{
|
|
"childs": [],
|
|
"icon": "string",
|
|
"label": "string",
|
|
"name": "string",
|
|
"url": "string"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"description": "Get menu data"
|
|
},
|
|
"401": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": { "message": { "type": "string" } },
|
|
"type": "object"
|
|
},
|
|
"example": { "message": "Unauthorized: Authentication required" }
|
|
}
|
|
},
|
|
"description": "Unauthorized"
|
|
}
|
|
}
|
|
}
|