Revize a3ae1cab
Přidáno uživatelem Jakub Hlaváč před více než 3 roky(ů)
src/app/shared/api/openapi.yaml | ||
---|---|---|
21 | 21 |
description: Observations endpoints |
22 | 22 |
- name: analytics |
23 | 23 |
description: Analitics endpoints |
24 |
- name: management |
|
25 |
description: Insert endpoints |
|
26 |
- name: sensors |
|
27 |
description: Sensor service |
|
24 | 28 |
|
25 | 29 |
paths: |
26 | 30 |
/senslog15/ControllerServlet: |
... | ... | |
166 | 170 |
sensor: |
167 | 171 |
$ref: '#/components/schemas/Sensors' |
168 | 172 |
|
173 |
/senslog15/ManagementService?Operation=InsertUnit: |
|
174 |
post: |
|
175 |
tags: |
|
176 |
- management |
|
177 |
summary: Insert Unit |
|
178 |
operationId: insertUnit |
|
179 |
responses: |
|
180 |
200: |
|
181 |
description: inserted |
|
182 |
requestBody: |
|
183 |
required: true |
|
184 |
content: |
|
185 |
application/json: |
|
186 |
schema: |
|
187 |
type: object |
|
188 |
properties: |
|
189 |
unit: |
|
190 |
$ref: '#/components/schemas/InsertUnit' |
|
191 |
sensors: |
|
192 |
type: array |
|
193 |
items: |
|
194 |
$ref: '#/components/schemas/InsertSensor' |
|
195 |
|
|
196 |
/senslog15/SensorService?Operation=GetAllPhenomenons: |
|
197 |
get: |
|
198 |
tags: |
|
199 |
- sensors |
|
200 |
summary: Get phenomenons |
|
201 |
operationId: getPhenomenons |
|
202 |
responses: |
|
203 |
200: |
|
204 |
description: Getting all Phenomenons |
|
205 |
content: |
|
206 |
application/json: |
|
207 |
schema: |
|
208 |
type: array |
|
209 |
items: |
|
210 |
$ref: ''#/components/schemas/Phenomenon'' |
|
211 |
|
|
212 |
/senslog15/ManagementService?Operation=UpdateUnit: |
|
213 |
put: |
|
214 |
tags: |
|
215 |
- management |
|
216 |
summary: Update Unit |
|
217 |
operationId: updateUnit |
|
218 |
responses: |
|
219 |
200: |
|
220 |
description: updated |
|
221 |
requestBody: |
|
222 |
required: true |
|
223 |
content: |
|
224 |
application/json: |
|
225 |
schema: |
|
226 |
type: object |
|
227 |
properties: |
|
228 |
unit: |
|
229 |
$ref: '#/components/schemas/InsertUnit' |
|
230 |
|
|
231 |
|
|
169 | 232 |
components: |
170 | 233 |
schemas: |
234 |
InsertUnit: |
|
235 |
type: object |
|
236 |
properties: |
|
237 |
unit_id: |
|
238 |
type: integer |
|
239 |
description: |
|
240 |
type: string |
|
241 |
|
|
242 |
InsertSensor: |
|
243 |
type: object |
|
244 |
properties: |
|
245 |
sensor_id: |
|
246 |
type: integer |
|
247 |
sensor_name: |
|
248 |
type: string |
|
249 |
sensor_type: |
|
250 |
type: string |
|
251 |
phenomenon: |
|
252 |
$ref: '#/components/schemas/InsertPhenomenon' |
|
253 |
|
|
254 |
InsertPhenomenon: |
|
255 |
type: object |
|
256 |
properties: |
|
257 |
phenomenon_id: |
|
258 |
type: integer |
|
259 |
|
|
171 | 260 |
UserCookie: |
172 | 261 |
type: object |
173 | 262 |
properties: |
Také k dispozici: Unified diff
Re #8794 - Přidat unit - formulář, endpoint
+ new form for adding unit
+ new endpoint in OpenAPI