Skip to content
GitLab
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
  • info

info · Changes

Page history
Create API/doc/info authored Apr 30, 2020 by Yuying.Lo's avatar Yuying.Lo
Hide whitespace changes
Inline Side-by-side
API/doc/info.md 0 → 100644
View page @ f28c7871
# Doc
## <span class="" style="color:blue;">GET</span> /doc/info
### Description
根據使用者權限獲取文件資訊
### Parameter
| Parameter | Description | Example | Parameter Type | Data Type |
| ----------|---------------| -------| -----| ------|
| docName | doc name,doc 的唯一名 | Guides\_and\_API\_References | query | string |
| lang | 語言key,或沒有指定則回傳英文文件菜單 | 1 | query | int |
### Response Body
``` javascript
{
"status": "success",
"list": [
{
"id": 1,
"version": "v1.0.2",
"status": 1,
"lastUpdatedByUser": "Yuying.lo@advantech.com.tw",
"lastUpdatedByRole": 2,
"lastUpdatedTime": "2019-05-09T10:41:46.167285+08:00",
"feedback": {
"yes": 3,
"no": 1
}
},
{
"id": 3,
"version": "v1.0.3",
"status": 2,
"lastUpdatedByUser": "Yuying.lo@advantech.com.tw",
"lastUpdatedByRole": 1,
"lastUpdatedTime": "2019-05-09T10:41:46.167285+08:00",
"feedback": {
"yes": 3,
"no": 1
}
},
],
"lang": 1
}
```
##### Field
| Field Name | Description | Example | Data Type |
| -----------|---------------| -------| -------|
| status | 成功或失敗 | success | string |
| message | 失敗訊息 | Doc name does not exist | string |
| list | list 物件陣列 | 如上範例 | array |
| list[x].id | 文件 id | 1 | int |
| list[x].version | 文件版本號 | v1.0.3 | string |
| list[x].status | 文件版狀態 | 2 | int |
| list[x].lastUpdatedByUsername | 最後更新使用者 username | Yuying.lo@advantech.com.tw | string |
| list[x].lastUpdatedByRole | 最後更新使用者角色 | 2 | int |
| list[x].lastUpdatedByTime | 最後更新時間 | 2019-05-09T10:41:46.167285+08:00 | string |
| list[x].feedback | 文件 feedback 物件 | {} | object |
| list[x].feedback.yes | 文件 feedback yes 數 | 2 | int |
| list[x].feedback.no| 文件 feedback no 數 | 2 | int |
| lang | 此 menu 的語言 | 1 | int |
Clone repository
  • API
    • doc
      • content
      • info
      • menu
  • Home