Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D Document
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
Collapse sidebar
  • Technical-PortalTechnical-Portal
  • Document
  • Wiki
  • Api
  • Doc
  • menu

menu · Changes

Page history
Create API/doc/menu authored 5 years ago by Yuying.Lo's avatar Yuying.Lo
Hide whitespace changes
Inline Side-by-side
Showing
with 80 additions and 0 deletions
+80 -0
API/doc/menu.md 0 → 100644
View page @ 59e712c3
# Doc
## <span class="" style="color:blue;">GET</span> /doc/menu
### Description
根據使用者權限獲取文件菜單
### Parameter
| Parameter | Description | Example | Parameter Type | Data Type |
| ----------|---------------| -------| -----| ------|
| menuName | menu name,menu tree 節點的唯一名 | Guides\_and\_API\_References | query | string |
| level | 取得從 menuName 節點往下的 n 階層內的所有節點,若沒有指定則取得從 menuName 節點往下的所有節點 | 3 | query | int |
| lang | 語言key,或沒有指定則回傳英文文件菜單 | 1 | query | int |
### Response Body
``` javascript
{
"status": "success",
"menu": {
"id": 1,
"menuName": "Guides_and_API_References",
"forumLink": "https://forum.wise-paas.advantech.com/articles/128/test0509.html",
"order": 1,
"status": 1,
"level": 1,
"subtitle": "",
"title": "Guides and API References",
"type": "menu",
"children": [
{
"id": 10,
"menuName": "Industrial_IoT_Cloud_Platform",
"forumLink": "https://forum.wise-paas.advantech.com/articles/128/test0509.html",
"order": 1,
"status": 1,
"level": 2,
"subtitle": [{lang:1, subtitle: 'WISE-PaaS'}, {lang:2, subtitle: 'WISE-PaaS'}, {lang:3, subtitle: 'WISE-PaaS'}],
"title": [{lang:1, title: 'Industrial IoT Cloud Platform'}, {lang:2, title: 'Industrial IoT Cloud Platform'}, {lang:3, title: 'Industrial IoT Cloud Platform'}],
"type": "menu"
},
{
"docId": 1,
"docType": "M.D.",
"docName": "Quick_Start_Guide",
"forumLink": "https://forum.wise-paas.advantech.com/articles/128/test0509.html",
"order": 2,
"status": 1,
"title": [{lang:1, title: 'Quick Start Guide'}, {lang:2, title: '开始使用'}, {lang:3, title: '開始使用'}],
"subtitle": [{lang:1, subtitle: ''}, {lang:2, subtitle: ''}, {lang:3, subtitle: ''}],
"level": 2,
"type": "doc"
}
]
},
"lang": 1
}
```
##### Field
| Field Name | Description | Example | Data Type |
| -----------|---------------| -------| -------|
| status | 成功或失敗 | success | string |
| message | 失敗訊息 | Menu Name does not exist | string |
| menu | menu 物件 | 如上範例 | object |
| menu.type | 此節點類型,目前分兩種:menu, doc| menu | string |
| menu.title | 此節點各語言名稱 |[{lang:1, title: 'Quick Start Guide'}, {lang:2, title: '开始使用'}, {lang:3, title: '開始使用'}] | array |
| menu.subtitle | 此節點各語言副名稱| [{lang:1, subtitle: 'WISE-PaaS'}, {lang:2, subtitle: 'WISE-PaaS'}, {lang:3, subtitle: 'WISE-PaaS'}] | array |
| menu.order | 此節點在此層中的排序 | 2 | int |
| menu.status | 此節點狀態,若為 1 則可顯示在前台 | 1 | int |
| menu.level | 此節點從根目錄算起的階層 | 2 | int |
| menu.id | 若類型為 menu,則節點會有 menu id | 10 | int |
| menu.menuName | 若類型為 menu,則節點會有 menu name | Guides_and_API_References | string |
| menu.docId | 若類型為 doc,則節點會有 doc id | 14 | int |
| menu.docName | 若類型為 doc,則節點會有 doc name | Quick_Start_Guide | string |
| menu.docType | 若類型為 doc,則節點會有 doc type | M.D. | string |
| menu.forumLink | 節點 forum link| 如上範例 | string |
| lang | 此 menu 的語言 | 1 | int |
\ No newline at end of file
Clone repository
  • API
    • doc
      • content
      • info
      • menu
  • Home

Menu

Explore Projects Groups Topics Snippets