报表
更新时间:2023-02-02
获取报表树形目录列表
接口简介
获取某空间所有报表树形目录列表
接口详情
请求地址
/openapi/v2/group/{groupKey}/report
请求类型
GET
请求参数
无
返回正确 JSON 示例
Javascript
1{
2 "data": [
3 {
4 "hash": "r_ada15-an4qnwcp-wko9k3",
5 "type": 1,
6 "name": "报表1",
7 "editable": true,
8 "remark": "v_zhouwenting创建的",
9 "hierarchyLevel": 1,
10 "orderIndex": 1, //一级目录报表的顺序
11 "isPublic": false,
12 "isDev": false,
13 "authType": 0
14 },
15 {
16 "hash": "r_ada15-6fgow5li-xmrpk1",
17 "type": 1,
18 "name": "报表2",
19 "editable": true,
20 "remark": "报表2",
21 "hierarchyLevel": 1,
22 "orderIndex": 2,
23 "isPublic": false,
24 "isDev": false,
25 "authType": 0
26 },
27 {
28 "hash": "r_ada15-bgatggol-1kedmy", // 报表文件夹hash
29 "type": 0, // 类型:0(文件夹)、1(报表)
30 "name": "文件夹一",
31 "editable": true,
32 "remark": "",
33 "children": [ // 文件夹中包含的报表
34 {
35 "hash": "r_ada15-8im28trt-xkp1kp", // 报表hash,
36 "type": 1,
37 "name": "报表一",
38 "editable": true,
39 "remark": "",
40 "hierarchyLevel": 2, // 层级深度
41 "orderIndex": 1, //当前文件夹中的顺序
42 "isPublic": false,
43 "isDev": false,
44 "authType": 0
45 },
46 {
47 "hash": "r_ada15-5ll0i7ck-jk65md",
48 "type": 0,
49 "name": "文件夹1中的文件夹", // 文件夹中包含的文件夹名
50 "editable": true,
51 "remark": "",
52 "children": [ // 一层文件夹中包含文件夹中的报表
53 {
54 "hash": "r_ada15-5yujnrnc-gm4o2b",
55 "type": 1,
56 "name": "II-报表1",
57 "editable": true,
58 "remark": "",
59 "hierarchyLevel": 3,
60 "orderIndex": 1,
61 "isPublic": false,
62 "isDev": false,
63 "authType": 0
64 }
65 ],
66 "hierarchyLevel": 2,
67 "orderIndex": 2,
68 "isPublic": false,
69 "isDev": false,
70 "authType": 0
71 }
72 ],
73 "hierarchyLevel": 1,
74 "orderIndex": 3,
75 "isPublic": false,
76 "isDev": false,
77 "authType": 0
78 }
79]
80}
返回错误 JSON 示例
Javascript
1{
2 msg: '错误详情',
3 status:499
4}
请求示例
某用户有权限查看的报表树形列表
接口简介
某用户有权限查看的报表树形列表
接口详情
请求地址
/openapi/v2/group/{groupKey}/report/reportOfUser
请求类型
GET
请求参数
参数名 | 类型 | 必填 | 描述 | 默认值 | 参考值 |
---|---|---|---|---|---|
userEmail | String | 是 | 用户账号邮箱 | - | a@baidu.com |
返回正确 JSON 示例
Javascript
1{
2 "data": [
3 {
4 "hash": "r_ada15-an4qnwcp-wko9k3",
5 "type": 1,
6 "name": "报表1",
7 "editable": true,
8 "remark": "",
9 "hierarchyLevel": 1,
10 "orderIndex": 1,
11 "isPublic": false,
12 "isDev": false,
13 "authType": 0
14 },
15 {
16 "hash": "r_ada15-442euqyv-5294mr",
17 "type": 1,
18 "name": "a创建的报表",
19 "editable": true,
20 "remark": "a创建的报表",
21 "hierarchyLevel": 1,
22 "orderIndex": 2,
23 "isPublic": false,
24 "isDev": false,
25 "authType": 0
26 },
27 {
28 "hash": "r_ada15-6fgow5li-xmrpk1",
29 "type": 1,
30 "name": "报表2",
31 "editable": true,
32 "remark": "报表2",
33 "hierarchyLevel": 1,
34 "orderIndex": 3,
35 "isPublic": false,
36 "isDev": false,
37 "authType": 0
38 }
39 ]
40}
返回错误 JSON 示例
Javascript
1{
2 msg: '错误详情',
3 status:499
4}