Skip to content

Commit e0082c5

Browse files
Merge pull request #3 from umweltinfo/mudab-umweltinfo-api-erweiterung
Dokumenation weiterer Teile der Schnittstelle.
2 parents 47fbccd + 2060ffb commit e0082c5

2 files changed

Lines changed: 139 additions & 2 deletions

File tree

.github/workflows/openapi_check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
set -C; echo "extends: spectral:oas" > .spectral.yaml
1515
1616
# Run Spectral
17-
- uses: stoplightio/spectral-action@v0.8.1
17+
- uses: stoplightio/spectral-action@v0.8.11
1818
with:
1919
file_glob: openapi.yaml
2020
spectral_ruleset: .spectral.yaml

openapi.yaml

Lines changed: 138 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ info:
77
servers:
88
- url: 'https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements'
99
paths:
10-
10+
1111
/PROJECTSTATION_SMALL:
1212
post:
1313
operationId: list-projekt-stationen
@@ -233,6 +233,56 @@ paths:
233233
items:
234234
$ref: '#/components/schemas/HelcomPLCStation'
235235

236+
/V_GEMESSENE_PARA_PLC:
237+
post:
238+
operationId: list-parameters-plc
239+
summary: Liste aller Parameter der PLC Stationen
240+
description: |
241+
Gibt eine filterbare Liste aller Parameter welche durch die gefilterten PLC Stationen gemessen werden zurück.
242+
Filterbare Attribute sind die Felder die aus dem ParameterPLC Schema kommen.
243+
requestBody:
244+
content:
245+
application/json:
246+
schema:
247+
$ref: '#/components/schemas/FilterRequest'
248+
responses:
249+
"200":
250+
description: Success
251+
content:
252+
application/json:
253+
schema:
254+
type: object
255+
properties:
256+
V_GEMESSENE_PARA_PLC:
257+
type: array
258+
items:
259+
$ref: '#/components/schemas/ParameterPLC'
260+
261+
/V_MESSWERTE_PLC:
262+
post:
263+
operationId: list-messwerte-plc
264+
summary: Liste aller Messwerte der gefilterten PLC Stationen
265+
description: |
266+
Gibt eine filterbare Liste aller Messwerte welche durch PLC Stationen gemessen wurden zurück.
267+
Filterbare Attribute sind die Felder die aus dem MesswertPLC Schema kommen, z.B. STATION_CODE
268+
requestBody:
269+
content:
270+
application/json:
271+
schema:
272+
$ref: '#/components/schemas/FilterRequest'
273+
responses:
274+
"200":
275+
description: Success
276+
content:
277+
application/json:
278+
schema:
279+
type: object
280+
properties:
281+
V_MESSWERTE_PLC:
282+
type: array
283+
items:
284+
$ref: '#/components/schemas/MesswertPLC'
285+
236286
components:
237287
schemas:
238288
FilterRequest:
@@ -342,6 +392,92 @@ components:
342392
PARAMGROUP_NAME:
343393
type: string
344394
description: Name der Parametergruppe
395+
ParameterPLC:
396+
type: object
397+
description: Messparameter einer PLC Station
398+
properties:
399+
metadataid:
400+
type: integer
401+
description: metadataid für diese Schema ist 66
402+
PARAMETER:
403+
type: string
404+
description: Parameterabkürzung
405+
PARAMETERGRUPPE:
406+
type: string
407+
description: Gruppe des Parameters
408+
STATION_CODE:
409+
type: string
410+
description: Stationscode
411+
LETZTE_MESSUNG:
412+
type: string
413+
description: Jahr der letzten Messung
414+
PRKEY:
415+
type: string
416+
description: Eindeutiger Identifier des Messwerts, zusammengesetzt aus STATION_CODE und PARAMETER
417+
STATION_NAME:
418+
type: string
419+
description: Name der Station
420+
ANZ_MESSWERTE:
421+
type: integer
422+
description: Anzahl der Messwerte
423+
SUBCM_CODE:
424+
type: string
425+
SUBCM_NAME:
426+
type: string
427+
MesswertPLC:
428+
type: object
429+
description: Ein Messwert einer PLC Station
430+
properties:
431+
metadataid:
432+
type: integer
433+
description: metadataid für diese Schema ist 67
434+
NUMMER:
435+
type: integer
436+
description: Laufende Nummer des Datums
437+
NAME:
438+
type: integer
439+
description: Bezeichnung des Messwertes
440+
STATION_CODE:
441+
type: string
442+
description: Stationscode
443+
STATION_NAME:
444+
type: string
445+
description: Name der Station
446+
VALUE:
447+
type: number
448+
description: Wert
449+
PARAM_TYPE:
450+
type: string
451+
description: Art der Messwertaggregation, entweder "TOT" oder "AVE"
452+
PARAM_ID:
453+
type: string
454+
description: Zahlencode für "NAME"
455+
PERIOD_NAME:
456+
type: string
457+
description: Jahr der Messung für PERIOD_TYPE "A"
458+
PERIOD_TYPE:
459+
type: string
460+
description: Dauer der Aggregation, "A"
461+
LAND_CD:
462+
type: string
463+
description: Code für das Bundesland der Station
464+
ST_LAT:
465+
type: number
466+
description: Latitude
467+
ST_LON:
468+
type: number
469+
description: Longitude
470+
SUBCM_CODE:
471+
type: string
472+
SUBCM_NAME:
473+
type: string
474+
MON_TYPE:
475+
type: string
476+
VAL_UNIT:
477+
type: string
478+
description: Einheit des Messwertes
479+
AREA:
480+
type: number
345481
ParameterValue:
346482
type: object
347483
description: Parameter Messwert
@@ -379,6 +515,7 @@ components:
379515
description: Stationscode
380516
LAND_CD:
381517
type: string
518+
description: Code für das Bundesland der Station
382519
ST_LAT:
383520
type: number
384521
description: Latitude

0 commit comments

Comments
 (0)