-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dashboard.postman_collection.json
173 lines (173 loc) · 5.19 KB
/
Dashboard.postman_collection.json
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"info": {
"_postman_id": "8903134b-e8f5-484d-827b-d66d7a0585f8",
"name": "Dashboard",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "http://localhost:8081/api/dataset/create",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"Name\": \"dataset_02_02_2019\",\n\t\"Desc\": \"Dataset para xdk-ale\",\n\t\"DatasetEnd\": 12412412,\n\t\"DatasetInterval\": 30000\n}"
},
"url": {
"raw": "http://localhost:8081/api/dataset/create",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"api",
"dataset",
"create"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/api/dataset/terminate",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"id\": 4\n}"
},
"url": {
"raw": "http://localhost:8081/api/dataset/terminate",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"api",
"dataset",
"terminate"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/api/dataset/get",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8081/api/dataset/get",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"api",
"dataset",
"get"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/api/putData",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"xdk2mam\": [\n {\n \"sensor\": \"Environmental\",\n \"data\": [\n {\n \"Pressure\": \"101212\"\n },\n {\n \"Temp\": \"24240\"\n },\n {\n \"Humidity\": \"56\"\n }\n ]\n },\n {\n \"sensor\": \"Accelerometer\",\n \"data\": [\n {\n \"x\": \"36\"\n },\n {\n \"y\": \"14\"\n },\n {\n \"z\": \"1025\"\n }\n ]\n },\n {\n \"sensor\": \"Gyroscope\",\n \"data\": [\n {\n \"x\": \"4514\"\n },\n {\n \"y\": \"244\"\n },\n {\n \"z\": \"-1830\"\n }\n ]\n },\n {\n \"sensor\": \"Inertial\",\n \"data\": [\n {\n \"x\": \"427\"\n },\n {\n \"y\": \"305\"\n },\n {\n \"z\": \"488\"\n }\n ]\n },\n {\n \"sensor\": \"Light\",\n \"data\": [\n {\n \"milliLux\": \"71640\"\n }\n ]\n },\n {\n \"sensor\": \"Magnetometer\",\n \"data\": [\n {\n \"x\": \"36\"\n },\n {\n \"y\": \"51\"\n },\n {\n \"z\": \"28\"\n }\n ]\n },\n {\n \"sensor\": \"Acoustic\",\n \"data\": [\n {\n \"mp\": \"0.138581\"\n }\n ]\n }\n ],\n \"device\": \"XDK-ALE\",\n \"timestamp\": \"1558511111\"\n}"
},
"url": {
"raw": "http://localhost:8081/api/putData",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"api",
"putData"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/api/getData/12/0",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8081/api/getData/13/0?limit=2",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"api",
"getData",
"13",
"0"
],
"query": [
{
"key": "limit",
"value": "2"
}
]
}
},
"response": []
},
{
"name": "http://localhost:8081/api/publish",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8081/api/publish",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"api",
"publish"
]
}
},
"response": []
}
]
}