Skip to content

Commit afd0a2d

Browse files
authored
Merge pull request #4 from bundesAPI/fix-schema
Fix schema
2 parents e0082c5 + 33ac8f7 commit afd0a2d

84 files changed

Lines changed: 2941 additions & 789 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deutschland_generator.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
strategy:
77
fail-fast: false
88
matrix:
9-
python-version: ['3.7.8' ]
9+
python-version: ['3.11.1' ]
1010
steps:
1111
- uses: actions/checkout@v2
1212

@@ -15,10 +15,9 @@ jobs:
1515
continue-on-error: true
1616
run: |
1717
set -C; echo "extends: spectral:oas" > .spectral.yaml
18-
1918
# Runs a single command using the runners shell
2019
- name: "Lint file"
21-
uses: stoplightio/spectral-action@v0.8.1
20+
uses: stoplightio/spectral-action@latest
2221
with:
2322
file_glob: "openapi.yaml"
2423

@@ -31,4 +30,4 @@ jobs:
3130
upload-to-testpypi: false
3231
pypi-token: ${{ secrets.PYPI_PRODUCTION }}
3332
testpypi-token: ${{ secrets.PYPI_TEST }}
34-
python-version: ${{ matrix.python-version }}
33+
python-version: ${{ matrix.python-version }}

generator_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ additionalProperties:
33
packageName: "mudab"
44
infoName: "BundesAPI"
55
infoEmail: "kontakt@bund.dev"
6-
packageVersion: 0.1.0
6+
packageVersion: 0.2.0
77
packageUrl: "https://github.com/bundesAPI/mudab-api"
88
namespace: "deutschland"
99
docLanguage: "de"

openapi.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,12 @@ paths:
254254
type: object
255255
properties:
256256
V_GEMESSENE_PARA_PLC:
257-
type: array
258-
items:
259-
$ref: '#/components/schemas/ParameterPLC'
257+
type: array
258+
items:
259+
$ref: '#/components/schemas/ParameterPLC'
260260

261261
/V_MESSWERTE_PLC:
262-
post:
262+
post:
263263
operationId: list-messwerte-plc
264264
summary: Liste aller Messwerte der gefilterten PLC Stationen
265265
description: |
@@ -279,9 +279,9 @@ paths:
279279
type: object
280280
properties:
281281
V_MESSWERTE_PLC:
282-
type: array
283-
items:
284-
$ref: '#/components/schemas/MesswertPLC'
282+
type: array
283+
items:
284+
$ref: '#/components/schemas/MesswertPLC'
285285

286286
components:
287287
schemas:
@@ -536,3 +536,4 @@ components:
536536
- CW
537537
- CS
538538
- CF
539+

python-client/.openapi-generator/FILES

Lines changed: 39 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,22 @@ docs/Filter.md
1010
docs/FilterAction.md
1111
docs/FilterRequest.md
1212
docs/HelcomPLCStation.md
13-
docs/InlineResponse200.md
14-
docs/InlineResponse2001.md
15-
docs/InlineResponse2002.md
16-
docs/InlineResponse2003.md
17-
docs/InlineResponse2004.md
18-
docs/InlineResponse2005.md
19-
docs/InlineResponse2006.md
20-
docs/InlineResponse2007.md
21-
docs/InlineResponse2008.md
13+
docs/ListMessStationen200Response.md
14+
docs/ListMesswertePlc200Response.md
15+
docs/ListParameter200Response.md
16+
docs/ListParameterValues200Response.md
17+
docs/ListParametersBiologie200Response.md
18+
docs/ListParametersBiota200Response.md
19+
docs/ListParametersPlc200Response.md
20+
docs/ListParametersSediment200Response.md
21+
docs/ListParametersWasser200Response.md
22+
docs/ListPlcStations200Response.md
23+
docs/ListProjektStationen200Response.md
2224
docs/Messstation.md
25+
docs/MesswertPLC.md
2326
docs/Orderby.md
2427
docs/Parameter.md
28+
docs/ParameterPLC.md
2529
docs/ParameterValue.md
2630
docs/ProjectStation.md
2731
docs/Range.md
@@ -39,18 +43,22 @@ mudab/model/filter.py
3943
mudab/model/filter_action.py
4044
mudab/model/filter_request.py
4145
mudab/model/helcom_plc_station.py
42-
mudab/model/inline_response200.py
43-
mudab/model/inline_response2001.py
44-
mudab/model/inline_response2002.py
45-
mudab/model/inline_response2003.py
46-
mudab/model/inline_response2004.py
47-
mudab/model/inline_response2005.py
48-
mudab/model/inline_response2006.py
49-
mudab/model/inline_response2007.py
50-
mudab/model/inline_response2008.py
46+
mudab/model/list_mess_stationen200_response.py
47+
mudab/model/list_messwerte_plc200_response.py
48+
mudab/model/list_parameter200_response.py
49+
mudab/model/list_parameter_values200_response.py
50+
mudab/model/list_parameters_biologie200_response.py
51+
mudab/model/list_parameters_biota200_response.py
52+
mudab/model/list_parameters_plc200_response.py
53+
mudab/model/list_parameters_sediment200_response.py
54+
mudab/model/list_parameters_wasser200_response.py
55+
mudab/model/list_plc_stations200_response.py
56+
mudab/model/list_projekt_stationen200_response.py
5157
mudab/model/messstation.py
58+
mudab/model/messwert_plc.py
5259
mudab/model/orderby.py
5360
mudab/model/parameter.py
61+
mudab/model/parameter_plc.py
5462
mudab/model/parameter_value.py
5563
mudab/model/project_station.py
5664
mudab/model/range.py
@@ -71,18 +79,22 @@ test/test_filter.py
7179
test/test_filter_action.py
7280
test/test_filter_request.py
7381
test/test_helcom_plc_station.py
74-
test/test_inline_response200.py
75-
test/test_inline_response2001.py
76-
test/test_inline_response2002.py
77-
test/test_inline_response2003.py
78-
test/test_inline_response2004.py
79-
test/test_inline_response2005.py
80-
test/test_inline_response2006.py
81-
test/test_inline_response2007.py
82-
test/test_inline_response2008.py
82+
test/test_list_mess_stationen200_response.py
83+
test/test_list_messwerte_plc200_response.py
84+
test/test_list_parameter200_response.py
85+
test/test_list_parameter_values200_response.py
86+
test/test_list_parameters_biologie200_response.py
87+
test/test_list_parameters_biota200_response.py
88+
test/test_list_parameters_plc200_response.py
89+
test/test_list_parameters_sediment200_response.py
90+
test/test_list_parameters_wasser200_response.py
91+
test/test_list_plc_stations200_response.py
92+
test/test_list_projekt_stationen200_response.py
8393
test/test_messstation.py
94+
test/test_messwert_plc.py
8495
test/test_orderby.py
8596
test/test_parameter.py
97+
test/test_parameter_plc.py
8698
test/test_parameter_value.py
8799
test/test_project_station.py
88100
test/test_range.py
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.0-SNAPSHOT
1+
6.1.0

python-client/README.md

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Meeres-Monitoringdaten von Küstenbundesländern und Forschungseinrichtungen
55
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
66

77
- API version: 1.0.0
8-
- Package version: 0.1.0
8+
- Package version: 0.2.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

1111
## Requirements.
@@ -52,15 +52,17 @@ from deutschland import mudab
5252
from pprint import pprint
5353
from deutschland.mudab.api import default_api
5454
from deutschland.mudab.model.filter_request import FilterRequest
55-
from deutschland.mudab.model.inline_response200 import InlineResponse200
56-
from deutschland.mudab.model.inline_response2001 import InlineResponse2001
57-
from deutschland.mudab.model.inline_response2002 import InlineResponse2002
58-
from deutschland.mudab.model.inline_response2003 import InlineResponse2003
59-
from deutschland.mudab.model.inline_response2004 import InlineResponse2004
60-
from deutschland.mudab.model.inline_response2005 import InlineResponse2005
61-
from deutschland.mudab.model.inline_response2006 import InlineResponse2006
62-
from deutschland.mudab.model.inline_response2007 import InlineResponse2007
63-
from deutschland.mudab.model.inline_response2008 import InlineResponse2008
55+
from deutschland.mudab.model.list_mess_stationen200_response import ListMessStationen200Response
56+
from deutschland.mudab.model.list_messwerte_plc200_response import ListMesswertePlc200Response
57+
from deutschland.mudab.model.list_parameter200_response import ListParameter200Response
58+
from deutschland.mudab.model.list_parameter_values200_response import ListParameterValues200Response
59+
from deutschland.mudab.model.list_parameters_biologie200_response import ListParametersBiologie200Response
60+
from deutschland.mudab.model.list_parameters_biota200_response import ListParametersBiota200Response
61+
from deutschland.mudab.model.list_parameters_plc200_response import ListParametersPlc200Response
62+
from deutschland.mudab.model.list_parameters_sediment200_response import ListParametersSediment200Response
63+
from deutschland.mudab.model.list_parameters_wasser200_response import ListParametersWasser200Response
64+
from deutschland.mudab.model.list_plc_stations200_response import ListPlcStations200Response
65+
from deutschland.mudab.model.list_projekt_stationen200_response import ListProjektStationen200Response
6466
# Defining the host is optional and defaults to https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements
6567
# See configuration.py for a list of all supported configuration parameters.
6668
configuration = mudab.Configuration(
@@ -111,10 +113,12 @@ All URIs are relative to *https://geoportal.bafg.de/MUDABAnwendung/rest/BaseCont
111113
Class | Method | HTTP request | Description
112114
------------ | ------------- | ------------- | -------------
113115
*DefaultApi* | [**list_mess_stationen**](docs/DefaultApi.md#list_mess_stationen) | **POST** /STATION_SMALL | Liste aller Messstationen
116+
*DefaultApi* | [**list_messwerte_plc**](docs/DefaultApi.md#list_messwerte_plc) | **POST** /V_MESSWERTE_PLC | Liste aller Messwerte der gefilterten PLC Stationen
114117
*DefaultApi* | [**list_parameter**](docs/DefaultApi.md#list_parameter) | **POST** /MV_PARAMETER | Liste aller Parameter
115118
*DefaultApi* | [**list_parameter_values**](docs/DefaultApi.md#list_parameter_values) | **POST** /MV_STATION_MSMNT | Liste aller Messwerte
116119
*DefaultApi* | [**list_parameters_biologie**](docs/DefaultApi.md#list_parameters_biologie) | **POST** /MV_PARAMETER_BIOLOGIE | Liste aller Parameter im Biologie Kompartiment
117120
*DefaultApi* | [**list_parameters_biota**](docs/DefaultApi.md#list_parameters_biota) | **POST** /MV_PARAMETER_BIOTA | Liste aller Parameter im Biota Kompartiment
121+
*DefaultApi* | [**list_parameters_plc**](docs/DefaultApi.md#list_parameters_plc) | **POST** /V_GEMESSENE_PARA_PLC | Liste aller Parameter der PLC Stationen
118122
*DefaultApi* | [**list_parameters_sediment**](docs/DefaultApi.md#list_parameters_sediment) | **POST** /MV_PARAMETER_SEDIMENT | Liste aller Parameter im Sediment Kompartiment
119123
*DefaultApi* | [**list_parameters_wasser**](docs/DefaultApi.md#list_parameters_wasser) | **POST** /MV_PARAMETER_WASSER | Liste aller Parameter im Wasser Kompartiment
120124
*DefaultApi* | [**list_plc_stations**](docs/DefaultApi.md#list_plc_stations) | **POST** /V_PLC_STATION | Liste aller HELCOM PLC Stationen
@@ -128,18 +132,22 @@ Class | Method | HTTP request | Description
128132
- [FilterAction](docs/FilterAction.md)
129133
- [FilterRequest](docs/FilterRequest.md)
130134
- [HelcomPLCStation](docs/HelcomPLCStation.md)
131-
- [InlineResponse200](docs/InlineResponse200.md)
132-
- [InlineResponse2001](docs/InlineResponse2001.md)
133-
- [InlineResponse2002](docs/InlineResponse2002.md)
134-
- [InlineResponse2003](docs/InlineResponse2003.md)
135-
- [InlineResponse2004](docs/InlineResponse2004.md)
136-
- [InlineResponse2005](docs/InlineResponse2005.md)
137-
- [InlineResponse2006](docs/InlineResponse2006.md)
138-
- [InlineResponse2007](docs/InlineResponse2007.md)
139-
- [InlineResponse2008](docs/InlineResponse2008.md)
135+
- [ListMessStationen200Response](docs/ListMessStationen200Response.md)
136+
- [ListMesswertePlc200Response](docs/ListMesswertePlc200Response.md)
137+
- [ListParameter200Response](docs/ListParameter200Response.md)
138+
- [ListParameterValues200Response](docs/ListParameterValues200Response.md)
139+
- [ListParametersBiologie200Response](docs/ListParametersBiologie200Response.md)
140+
- [ListParametersBiota200Response](docs/ListParametersBiota200Response.md)
141+
- [ListParametersPlc200Response](docs/ListParametersPlc200Response.md)
142+
- [ListParametersSediment200Response](docs/ListParametersSediment200Response.md)
143+
- [ListParametersWasser200Response](docs/ListParametersWasser200Response.md)
144+
- [ListPlcStations200Response](docs/ListPlcStations200Response.md)
145+
- [ListProjektStationen200Response](docs/ListProjektStationen200Response.md)
140146
- [Messstation](docs/Messstation.md)
147+
- [MesswertPLC](docs/MesswertPLC.md)
141148
- [Orderby](docs/Orderby.md)
142149
- [Parameter](docs/Parameter.md)
150+
- [ParameterPLC](docs/ParameterPLC.md)
143151
- [ParameterValue](docs/ParameterValue.md)
144152
- [ProjectStation](docs/ProjectStation.md)
145153
- [Range](docs/Range.md)

python-client/deutschland/mudab/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313

14-
__version__ = "0.1.0"
14+
__version__ = "0.2.0"
1515

1616
# import ApiClient
1717
from deutschland.mudab.api_client import ApiClient

0 commit comments

Comments
 (0)