Skip to content

Commit

Permalink
Merge pull request #3 from umweltinfo/mudab-umweltinfo-api-erweiterung
Browse files Browse the repository at this point in the history
Dokumenation weiterer Teile der Schnittstelle.
  • Loading branch information
LilithWittmann authored Feb 6, 2024
2 parents 47fbccd + 2060ffb commit e0082c5
Show file tree
Hide file tree
Showing 2 changed files with 139 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/openapi_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
set -C; echo "extends: spectral:oas" > .spectral.yaml
# Run Spectral
- uses: stoplightio/[email protected].1
- uses: stoplightio/[email protected].11
with:
file_glob: openapi.yaml
spectral_ruleset: .spectral.yaml
139 changes: 138 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ info:
servers:
- url: 'https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements'
paths:

/PROJECTSTATION_SMALL:
post:

Check warning on line 12 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Lint (push)

operation-tags

Operation must have non-empty "tags" array.
operationId: list-projekt-stationen
Expand Down Expand Up @@ -233,6 +233,56 @@ paths:
items:
$ref: '#/components/schemas/HelcomPLCStation'

/V_GEMESSENE_PARA_PLC:
post:

Check warning on line 237 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Lint (push)

operation-tags

Operation must have non-empty "tags" array.
operationId: list-parameters-plc
summary: Liste aller Parameter der PLC Stationen
description: |
Gibt eine filterbare Liste aller Parameter welche durch die gefilterten PLC Stationen gemessen werden zurück.
Filterbare Attribute sind die Felder die aus dem ParameterPLC Schema kommen.
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/FilterRequest'
responses:
"200":
description: Success
content:
application/json:
schema:
type: object
properties:
V_GEMESSENE_PARA_PLC:

Check failure on line 256 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Lint (push)

oas3-schema

"V_GEMESSENE_PARA_PLC" property type must be object.
type: array

Check failure on line 257 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Lint (push)

oas3-schema

"type" property type must be object.
items:
$ref: '#/components/schemas/ParameterPLC'

/V_MESSWERTE_PLC:
post:

Check warning on line 262 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Lint (push)

operation-tags

Operation must have non-empty "tags" array.

Check warning on line 262 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Lint (push)

operation-description

Operation "description" must be present and non-empty string.

Check warning on line 262 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Lint (push)

operation-operationId

Operation must have "operationId".

Check failure on line 262 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Lint (push)

oas3-schema

"post" property type must be object.
operationId: list-messwerte-plc

Check failure on line 263 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Lint (push)

oas3-schema

Property "operationId" is not expected to be here.
summary: Liste aller Messwerte der gefilterten PLC Stationen
description: |
Gibt eine filterbare Liste aller Messwerte welche durch PLC Stationen gemessen wurden zurück.
Filterbare Attribute sind die Felder die aus dem MesswertPLC Schema kommen, z.B. STATION_CODE
requestBody:

Check failure on line 268 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Lint (push)

oas3-schema

Property "requestBody" is not expected to be here.
content:
application/json:
schema:
$ref: '#/components/schemas/FilterRequest'
responses:

Check failure on line 273 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Lint (push)

oas3-schema

Property "responses" is not expected to be here.
"200":
description: Success
content:
application/json:
schema:
type: object
properties:
V_MESSWERTE_PLC:
type: array
items:
$ref: '#/components/schemas/MesswertPLC'

components:
schemas:
FilterRequest:
Expand Down Expand Up @@ -342,6 +392,92 @@ components:
PARAMGROUP_NAME:
type: string
description: Name der Parametergruppe
ParameterPLC:
type: object
description: Messparameter einer PLC Station
properties:
metadataid:
type: integer
description: metadataid für diese Schema ist 66
PARAMETER:
type: string
description: Parameterabkürzung
PARAMETERGRUPPE:
type: string
description: Gruppe des Parameters
STATION_CODE:
type: string
description: Stationscode
LETZTE_MESSUNG:
type: string
description: Jahr der letzten Messung
PRKEY:
type: string
description: Eindeutiger Identifier des Messwerts, zusammengesetzt aus STATION_CODE und PARAMETER
STATION_NAME:
type: string
description: Name der Station
ANZ_MESSWERTE:
type: integer
description: Anzahl der Messwerte
SUBCM_CODE:
type: string
SUBCM_NAME:
type: string
MesswertPLC:
type: object
description: Ein Messwert einer PLC Station
properties:
metadataid:
type: integer
description: metadataid für diese Schema ist 67
NUMMER:
type: integer
description: Laufende Nummer des Datums
NAME:
type: integer
description: Bezeichnung des Messwertes
STATION_CODE:
type: string
description: Stationscode
STATION_NAME:
type: string
description: Name der Station
VALUE:
type: number
description: Wert
PARAM_TYPE:
type: string
description: Art der Messwertaggregation, entweder "TOT" oder "AVE"
PARAM_ID:
type: string
description: Zahlencode für "NAME"
PERIOD_NAME:
type: string
description: Jahr der Messung für PERIOD_TYPE "A"
PERIOD_TYPE:
type: string
description: Dauer der Aggregation, "A"
LAND_CD:
type: string
description: Code für das Bundesland der Station
ST_LAT:
type: number
description: Latitude
ST_LON:
type: number
description: Longitude
SUBCM_CODE:
type: string
SUBCM_NAME:
type: string
MON_TYPE:
type: string
VAL_UNIT:
type: string
description: Einheit des Messwertes
AREA:
type: number
ParameterValue:
type: object
description: Parameter Messwert
Expand Down Expand Up @@ -379,6 +515,7 @@ components:
description: Stationscode
LAND_CD:
type: string
description: Code für das Bundesland der Station
ST_LAT:
type: number
description: Latitude
Expand Down

0 comments on commit e0082c5

Please sign in to comment.