- Documentation
- Application Portal Service
- Application
- Get App Menu and Permission
Get App Menu and Permission¶
Get the list of application menu and permission.
Request Format¶
GET https://{apigw-address}/app-portal-service/v2.1/user/app/resource/info
Request Parameters (URI)¶
Name |
Location (Path/Query) |
Required or Not |
Data Type |
Description |
---|---|---|---|---|
accessKey |
Query |
true |
String |
Service account of the application. The application authenticates with |
Request Parameters (Header)¶
Name |
Required or Not |
Data Type |
Description |
---|---|---|---|
Authorization |
true |
String |
Access Token, represented as Bearer Token. Refer to Log In or Refresh Access Token to learn how to get Access Token. |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
data |
data struct |
List of application menu and permission |
data Struct¶
Name |
Data Type |
Description |
---|---|---|
permissions |
Permission list |
Permission list |
menus |
Menu list |
Menu list |
Permission List¶
Name |
Data Type |
Description |
---|---|---|
id |
String |
Permission ID |
identifier |
String |
Permission identifier |
name |
String |
Permission name |
Menu List¶
Name |
Data Type |
Description |
---|---|---|
id |
String |
Menu ID |
name |
String |
Menu name |
identifier |
String |
Menu identifier |
displayOrder |
Integer |
The display order of the menu, indicating the ordering of the current menu in its level. The value is an integer starting from 1. The smaller the number is, the higher place the menu lists. |
url |
String |
Menu URL |
parentId |
String |
Parent menu |
children |
Menu struct |
Submenu |
Sample¶
Request Sample¶
GET
https://{apigw-address}/app-portal-service/v2.1/user/app/resource/info?accessKey=app_1
headers: {"Authorization":"Bearer APP_PORTAL_S_TDKKeqfYBK3m5z3LRgKVqThWDYnRBN44"}
Return Sample¶
{
"code": 200,
"message": "",
"data": {
"permissions": [],
"menus": [
{
"id": "4658d768-42d6-4f8f-98aa-de176c5e9d09",
"identifier": "menu",
"name": "menu",
"url": "/a",
"displayOrder": 1,
"parentId": "",
"children": []
},
{
"id": "2aff0920-d1e8-4033-95fb-cb60c5adf5c8",
"identifier": "menu2",
"name": "menu2",
"url": "/eos-wind-map/assetOverview.html",
"displayOrder": 2,
"parentId": "",
"children": []
}
]
}
}