Revize a7285540
Přidáno uživatelem Jakub Hlaváč před téměř 4 roky(ů)
src/app/shared/api/openapi.yaml | ||
---|---|---|
19 | 19 |
description: Data endpoints |
20 | 20 |
- name: observation |
21 | 21 |
description: Observations endpoints |
22 |
- name: analytics |
|
23 |
description: Analitics endpoints |
|
22 | 24 |
|
23 | 25 |
paths: |
24 | 26 |
/senslog1/ControllerServlet: |
... | ... | |
145 | 147 |
unit: |
146 | 148 |
$ref: '#/components/schemas/Unit' |
147 | 149 |
|
150 |
/analytics/analytics: |
|
151 |
get: |
|
152 |
tags: |
|
153 |
- analytics |
|
154 |
summary: Get analytics |
|
155 |
operationId: getAnalytics |
|
156 |
parameters: |
|
157 |
- in: query |
|
158 |
name: unit_id |
|
159 |
required: true |
|
160 |
schema: |
|
161 |
type: integer |
|
162 |
- in: query |
|
163 |
name: sensor_id |
|
164 |
required: false |
|
165 |
schema: |
|
166 |
type: integer |
|
167 |
- in: query |
|
168 |
name: from |
|
169 |
schema: |
|
170 |
type: string |
|
171 |
- in: query |
|
172 |
name: to |
|
173 |
schema: |
|
174 |
type: string |
|
175 |
- in: query |
|
176 |
name: interval |
|
177 |
schema: |
|
178 |
type: string |
|
179 |
responses: |
|
180 |
200: |
|
181 |
description: Get observation for unit |
|
182 |
content: |
|
183 |
application/json: |
|
184 |
schema: |
|
185 |
type: array |
|
186 |
properties: |
|
187 |
sensor: |
|
188 |
$ref: '#/components/schemas/Sensors' |
|
189 |
|
|
148 | 190 |
components: |
149 | 191 |
schemas: |
150 | 192 |
UserInfo: |
... | ... | |
272 | 314 |
value: |
273 | 315 |
type: number |
274 | 316 |
|
317 |
Sensors: |
|
318 |
type: object |
|
319 |
properties: |
|
320 |
sensorsData: |
|
321 |
$ref: '#/components/schemas/SensorsData' |
|
322 |
|
|
323 |
SensorsData: |
|
324 |
type: object |
|
325 |
properties: |
|
326 |
interval: |
|
327 |
type: number |
|
328 |
data: |
|
329 |
$ref: '#/components/schemas/Data' |
|
330 |
statistics: |
|
331 |
$ref: '#/components/schemas/Statistics' |
|
332 |
|
|
333 |
Data: |
|
334 |
type: object |
|
335 |
properties: |
|
336 |
observation: |
|
337 |
$ref: '#/components/schemas/Obser' |
|
338 |
|
|
339 |
Obser: |
|
340 |
type: object |
|
341 |
properties: |
|
342 |
min: |
|
343 |
type: number |
|
344 |
max: |
|
345 |
type: number |
|
346 |
avg: |
|
347 |
type: number |
|
348 |
sum: |
|
349 |
type: number |
|
350 |
timestamp: |
|
351 |
type: string |
|
352 |
format: date-time |
|
353 |
|
|
354 |
Statistics: |
|
355 |
type: object |
|
356 |
properties: |
|
357 |
min: |
|
358 |
type: number |
|
359 |
max: |
|
360 |
type: number |
|
361 |
avg: |
|
362 |
type: number |
|
363 |
sum: |
|
364 |
type: number |
|
365 |
|
|
366 |
|
|
367 |
|
|
368 |
|
|
369 |
|
|
370 |
|
|
275 | 371 |
|
Také k dispozici: Unified diff
Re #8676 - Definovat analytics API
+ new API endpoints (analytics)