本文講解FineBI中「公共資料」下資料夾相關API。
API簡介
/v5/api/pack/{groupId}/add
1)使用該API新增資料夾時,無法指定資料夾的命名,只能新增預設資料夾
2)groupId為父資料夾ID
回应實體
http://172.17.0.25:37799/webroot/decision/v5/api/pack/6fb11e7b1e6e4ff3bcb907a5747527b0/add?fine_auth_token=XXX
注:使用API時需要登入,需要傳遞token參數。
callback({
"success": true,
"code": "200",
"message": "success",
"data": {
"id": "2cfe4508927f4f46a6611026177a4fe0",
"name": "資料夾",
"initTime": 1669101345235,
"editable": true,
"createBy": "1",
"parentId": "6fb11e7b1e6e4ff3bcb907a5747527b0",
"coopAnalysis": false,
"creatorAuth": false,
"folders": [],
"subjects": [],
"tables": {}
},
"errorCode": null,
"detailErrorMsg": null,
"errorMsg": null
})
回应參數說明
是否可編輯
true:是
false:否
/v5/api/pack/{packId}/rename
packId為資料夾ID
請求參數-Query參數
http://172.17.0.25:37799/webroot/decision/v5/api/pack/2cfe4508927f4f46a6611026177a4fe0/rename?newName=銀行金融業&fine_auth_token=XXX
"data": [],
/v5/api/pack/delete
與5.XAPI不同
請求參數-body參數
{"packIds":"資料夾ID"}
packIds為待刪除的資料夾ID
http://172.17.0.25:37799/webroot/decision/v5/api/pack/delete?fine_auth_token=XXX
"packIds":"2cfe4508927f4f46a6611026177a4fe0"
}
"success": {
"tableNames": [],
"widgetIds": [],
"reportIds": [],
"subjectIds": [],
"packIds": []
"fail": {
"errorDetailBeanMap": {}
/v5/api/conf/packs/{packId}/structure
1)packId為資料夾ID
2)與5.XAPI不同
http://172.17.0.25:37799/webroot/decision/v5/api/conf/packs/6fb11e7b1e6e4ff3bcb907a5747527b0/structure?fine_auth_token=XXX
"id": "6fb11e7b1e6e4ff3bcb907a5747527b0",
"name": "教育培訓",
"initTime": 1660903942357,
"parentId": "2802469f40b14094aa7372ea2488a830",
"position": "公共資料/行業資料/教育培訓",
"folders": [
{
"name": "銀行金融業",
],
是否協作給當前使用者
是否擁有和建立者相等的權限
/v5/api/conf/packs/{packId}
http://172.17.0.25:37799/webroot/decision/v5/api/conf/packs/6fb11e7b1e6e4ff3bcb907a5747527b0?fine_auth_token=XXX
"tables": {
"availableTables": [
"name": "BI Demo_教師資訊表",
"transferName": "教育_教師資訊表",
"type": 2,
"initTime": 0,
"comment": null,
"validStatus": "VALID",
"sqlEditable": true,
"publishStatus": 0,
"connectionName": "BI Demo",
"moduleType": 1,
"extractDataSetting": 0,
"inherit": false,
"belongAnalysis": false,
"configUpdateTime": 1655283315926,
"engineType": "spider"
]
/v5/api/conf/groups
http://172.17.0.25:37799/webroot/decision/v5/api/conf/groups?fine_auth_token=XXX
"id": "__root_group__",
"name": "__root_group__",
"id": "de20c13fdcdd436987289588b232c38c",
"name": "功能資料",
"initTime": 1531138781428,
"parentId": "__root_group__",
"id": "17bb42b152e3425fa0e2dd827191131a",
"name": "部門資料",
"initTime": 1660900345241,
"id": "2802469f40b14094aa7372ea2488a830",
"name": "行業資料",
"initTime": 1663224796865,
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
反馈已提交
网络繁忙