Revize db9d0213
Přidáno uživatelem Jakub Hlaváč před téměř 4 roky(ů)
src/app/shared/api/openapi.yaml | ||
---|---|---|
19 | 19 |
description: Groups endpoints |
20 | 20 |
- name: data |
21 | 21 |
description: Data endpoints |
22 |
- name: observation |
|
23 |
description: Observations endpoints |
|
22 | 24 |
|
23 | 25 |
paths: |
24 | 26 |
/senslog1/ControllerServlet: |
... | ... | |
78 | 80 |
items: |
79 | 81 |
$ref: '#/components/schemas/Group' |
80 | 82 |
|
83 |
/senslog1/SensorService?Operation=GetObservations: |
|
84 |
get: |
|
85 |
tags: |
|
86 |
- observation |
|
87 |
summary: Get observation |
|
88 |
operationId: getObservation |
|
89 |
parameters: |
|
90 |
- in: query |
|
91 |
name: unit_id |
|
92 |
required: true |
|
93 |
schema: |
|
94 |
type: integer |
|
95 |
- in: query |
|
96 |
name: sensor_id |
|
97 |
required: true |
|
98 |
schema: |
|
99 |
type: integer |
|
100 |
- in: query |
|
101 |
name: from |
|
102 |
schema: |
|
103 |
type: string |
|
104 |
- in: query |
|
105 |
name: to |
|
106 |
schema: |
|
107 |
type: string |
|
108 |
responses: |
|
109 |
200: |
|
110 |
description: Get observation for unitId and sensorId |
|
111 |
content: |
|
112 |
application/json: |
|
113 |
schema: |
|
114 |
type: array |
|
115 |
items: |
|
116 |
$ref: '#/components/schemas/Observation' |
|
117 |
|
|
81 | 118 |
/senslog1/DataService?Operation=GetUnits: |
82 | 119 |
get: |
83 | 120 |
tags: |
... | ... | |
226 | 263 |
Drivers: |
227 | 264 |
type: array |
228 | 265 |
|
266 |
Observation: |
|
267 |
type: object |
|
268 |
properties: |
|
269 |
gid: |
|
270 |
type: integer |
|
271 |
time: |
|
272 |
type: string |
|
273 |
format: date-time |
|
274 |
value: |
|
275 |
type: number |
|
276 |
|
|
277 |
|
Také k dispozici: Unified diff
Re #8467 - Definice Open API 3.0
+ new Open API endpoints definitions