-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_visualizations.sh
More file actions
70 lines (66 loc) · 1.91 KB
/
create_visualizations.sh
File metadata and controls
70 lines (66 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
curl -H "Authorization: Bearer YWRtaW46Ym9vdHN0cmFwOmFkbWluMTIz" \
-H "Content-Type: application/vnd.gooddata.api+json" \
-H "Accept: application/vnd.gooddata.api+json" \
-X POST \
http://localhost:3000/api/v1/entities/workspaces/demo_ws/visualizationObjects \
-d '{
"data": {
"id":"testing_insight",
"type": "visualizationObject",
"attributes": {
"title":"Testing Insight",
"description":"",
"content":{
"buckets": [
{
"items": [
{
"measure": {
"localIdentifier": "8839cae840d8459caa35400d94abd44d",
"definition": {
"measureDefinition": {
"item": {
"identifier": {
"id": "revenue",
"type": "metric"
}
},
"filters": [
]
}
},
"title": "Revenue"
}
}
],
"localIdentifier": "measures"
},
{
"items": [
{
"attribute": {
"localIdentifier": "c8285e3eb43f448d84ff2056950ada6b",
"displayForm": {
"identifier": {
"id": "date.day",
"type": "label"
}
}
}
}
],
"localIdentifier": "trend"
}
],
"filters": [
],
"sorts": [
],
"properties": {
},
"visualizationUrl": "local:line",
"version": "2"
}
}
}
}'