Skip to content

Commit 201f891

Browse files
committed
Release 1.1.4 (2022-04-12)
- Added proper Content-Disposition headers to the `GET /v1/rapporten/{id}` and `GET /v1/facturen/{id}` endpoints with the correct filename. - Fix Mime Types for the `GET /v1/configuratie/callbacks` and `POST /v1/configuratie/callbacks` endpoints to only be `application/json`. - Fix
1 parent 246b9c4 commit 201f891

File tree

81 files changed

+1944
-1387
lines changed

Some content is hidden

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

81 files changed

+1944
-1387
lines changed

README.md

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ This API is documented in **OpenAPI format version 3** you can use tools like th
1616

1717
## Changelog
1818

19+
### 2022-04-12 (v1.1.4)
20+
- Added proper Content-Disposition headers to the `GET /v1/rapporten/{id}` and `GET /v1/facturen/{id}` endpoints with the correct filename.
21+
- Fix Mime Types for the `GET /v1/configuratie/callbacks` and `POST /v1/configuratie/callbacks` endpoints to only be `application/json`.
22+
- Fix C# API client to correctly use the `application/json-patch+json` content type in requests that require it.
23+
- Fix C# client's `FileParameter` type correct handling of response headers like `Content-Disposition` and `Content-Type`.
24+
- Removed C# client's useless implementation of `IValidatableObject`.
25+
- Fix Python client's internal namespace name being illegal `calcasa-api` -> calcasa.api.
26+
1927
### 2022-03-22 (v1.1.3)
2028
- Add 402 (Payment required) and 422 (Unprocessable entity) as potential response for `PATCH /v1/waarderingen/{id}`.
2129

@@ -116,8 +124,8 @@ Authentication is done via [OAuth2](https://oauth.net/2/) and the [client creden
116124

117125
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
118126

119-
- API version: 1.1.3
120-
- Package version: 1.1.3
127+
- API version: 1.1.4
128+
- Package version: 1.1.4
121129
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
122130
For more information, please visit [https://www.calcasa.nl/contact](https://www.calcasa.nl/contact)
123131

@@ -137,7 +145,7 @@ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
137145

138146
Then import the package:
139147
```python
140-
import calcasa-api
148+
import calcasa.api
141149
```
142150

143151
### Setuptools
@@ -151,7 +159,7 @@ python setup.py install --user
151159

152160
Then import the package:
153161
```python
154-
import calcasa-api
162+
import calcasa.api
155163
```
156164

157165
## Getting Started
@@ -161,17 +169,17 @@ Please follow the [installation procedure](#installation--usage) and then run th
161169
```python
162170

163171
import time
164-
import calcasa-api
172+
import calcasa.api
165173
from pprint import pprint
166-
from calcasa-api.api import adressen_api
167-
from calcasa-api.model.adres import Adres
168-
from calcasa-api.model.adres_info import AdresInfo
169-
from calcasa-api.model.not_found_problem_details import NotFoundProblemDetails
170-
from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
171-
from calcasa-api.model.problem_details import ProblemDetails
174+
from calcasa.api.api import adressen_api
175+
from calcasa.api.model.adres import Adres
176+
from calcasa.api.model.adres_info import AdresInfo
177+
from calcasa.api.model.not_found_problem_details import NotFoundProblemDetails
178+
from calcasa.api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
179+
from calcasa.api.model.problem_details import ProblemDetails
172180
# Defining the host is optional and defaults to https://api.calcasa.nl
173181
# See configuration.py for a list of all supported configuration parameters.
174-
configuration = calcasa-api.Configuration(
182+
configuration = calcasa.api.Configuration(
175183
host = "https://api.calcasa.nl"
176184
)
177185

@@ -181,14 +189,14 @@ configuration = calcasa-api.Configuration(
181189
# satisfies your auth use case.
182190

183191
# Configure OAuth2 access token for authorization: oauth
184-
configuration = calcasa-api.Configuration(
192+
configuration = calcasa.api.Configuration(
185193
host = "https://api.calcasa.nl"
186194
)
187195
configuration.access_token = 'YOUR_ACCESS_TOKEN'
188196

189197

190198
# Enter a context with an instance of the API client
191-
with calcasa-api.ApiClient(configuration) as api_client:
199+
with calcasa.api.ApiClient(configuration) as api_client:
192200
# Create an instance of the API class
193201
api_instance = adressen_api.AdressenApi(api_client)
194202
bag_nummeraanduiding_id = 1 # int | Een BAG Nummeraanduiding ID om een adres te specificeren.
@@ -197,7 +205,7 @@ with calcasa-api.ApiClient(configuration) as api_client:
197205
# Adres info op basis van BAG Nummeraanduiding Id.
198206
api_response = api_instance.get_adres(bag_nummeraanduiding_id)
199207
pprint(api_response)
200-
except calcasa-api.ApiException as e:
208+
except calcasa.api.ApiException as e:
201209
print("Exception when calling AdressenApi->get_adres: %s\n" % e)
202210
```
203211

@@ -328,21 +336,21 @@ [email protected]
328336

329337

330338
## Notes for Large OpenAPI documents
331-
If the OpenAPI document is large, imports in calcasa-api.apis and calcasa-api.models may fail with a
339+
If the OpenAPI document is large, imports in calcasa.api.apis and calcasa.api.models may fail with a
332340
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
333341

334342
Solution 1:
335343
Use specific imports for apis and models like:
336-
- `from calcasa-api.api.default_api import DefaultApi`
337-
- `from calcasa-api.model.pet import Pet`
344+
- `from calcasa.api.api.default_api import DefaultApi`
345+
- `from calcasa.api.model.pet import Pet`
338346

339347
Solution 2:
340348
Before importing the package, adjust the maximum recursion limit as shown below:
341349
```
342350
import sys
343351
sys.setrecursionlimit(1500)
344-
import calcasa-api
345-
from calcasa-api.apis import *
346-
from calcasa-api.models import *
352+
import calcasa.api
353+
from calcasa.api.apis import *
354+
from calcasa.api.models import *
347355
```
348356

calcasa-api/apis/__init__.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

calcasa-api/models/__init__.py

Lines changed: 0 additions & 66 deletions
This file was deleted.

calcasa/__init__.py

Whitespace-only changes.

calcasa-api/__init__.py renamed to calcasa/api/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@
1717
1818
Calcasa Public API v1
1919
20-
The version of the OpenAPI document: 1.1.3
20+
The version of the OpenAPI document: 1.1.4
2121
2222
Generated by: https://openapi-generator.tech
2323
"""
2424

25-
__version__ = "1.1.3"
25+
__version__ = "1.1.4"
2626

2727
# import ApiClient
28-
from calcasa-api.api_client import ApiClient
28+
from calcasa.api.api_client import ApiClient
2929

3030
# import Configuration
31-
from calcasa-api.configuration import Configuration
31+
from calcasa.api.configuration import Configuration
3232

3333
# import exceptions
34-
from calcasa-api.exceptions import OpenApiException
35-
from calcasa-api.exceptions import ApiAttributeError
36-
from calcasa-api.exceptions import ApiTypeError
37-
from calcasa-api.exceptions import ApiValueError
38-
from calcasa-api.exceptions import ApiKeyError
39-
from calcasa-api.exceptions import ApiException
34+
from calcasa.api.exceptions import OpenApiException
35+
from calcasa.api.exceptions import ApiAttributeError
36+
from calcasa.api.exceptions import ApiTypeError
37+
from calcasa.api.exceptions import ApiValueError
38+
from calcasa.api.exceptions import ApiKeyError
39+
from calcasa.api.exceptions import ApiException
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# do not import all apis into this module because that uses a lot of memory and stack frames
22
# if you need the ability to import all apis from one package, import them with
3-
# from calcasa-api.apis import AdressenApi
3+
# from calcasa.api.apis import AdressenApi

calcasa-api/api/adressen_api.py renamed to calcasa/api/api/adressen_api.py

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
1616
Calcasa Public API v1
1717
18-
The version of the OpenAPI document: 1.1.3
18+
The version of the OpenAPI document: 1.1.4
1919
2020
Generated by: https://openapi-generator.tech
2121
"""
2222

2323
import re # noqa: F401
2424
import sys # noqa: F401
2525

26-
from calcasa-api.api_client import ApiClient, Endpoint as _Endpoint
27-
from calcasa-api.model_utils import ( # noqa: F401
26+
from calcasa.api.api_client import ApiClient, Endpoint as _Endpoint
27+
from calcasa.api.model_utils import ( # noqa: F401
2828
check_allowed_values,
2929
check_validations,
3030
date,
@@ -33,11 +33,11 @@
3333
none_type,
3434
validate_and_convert_types
3535
)
36-
from calcasa-api.model.adres import Adres
37-
from calcasa-api.model.adres_info import AdresInfo
38-
from calcasa-api.model.not_found_problem_details import NotFoundProblemDetails
39-
from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
40-
from calcasa-api.model.problem_details import ProblemDetails
36+
from calcasa.api.model.adres import Adres
37+
from calcasa.api.model.adres_info import AdresInfo
38+
from calcasa.api.model.not_found_problem_details import NotFoundProblemDetails
39+
from calcasa.api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
40+
from calcasa.api.model.problem_details import ProblemDetails
4141

4242

4343
class AdressenApi(object):
@@ -198,6 +198,10 @@ def get_adres(
198198
_host_index (int/None): specifies the index of the server
199199
that we want to use.
200200
Default is read from the configuration.
201+
_request_auths (list): set to override the auth_settings for an a single
202+
request; this effectively ignores the authentication
203+
in the spec for a single request.
204+
Default is None
201205
async_req (bool): execute request asynchronously
202206
203207
Returns:
@@ -229,6 +233,7 @@ def get_adres(
229233
kwargs['_content_type'] = kwargs.get(
230234
'_content_type')
231235
kwargs['_host_index'] = kwargs.get('_host_index')
236+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
232237
kwargs['bag_nummeraanduiding_id'] = \
233238
bag_nummeraanduiding_id
234239
return self.get_adres_endpoint.call_with_http_info(**kwargs)
@@ -274,6 +279,10 @@ def search_adres(
274279
_host_index (int/None): specifies the index of the server
275280
that we want to use.
276281
Default is read from the configuration.
282+
_request_auths (list): set to override the auth_settings for an a single
283+
request; this effectively ignores the authentication
284+
in the spec for a single request.
285+
Default is None
277286
async_req (bool): execute request asynchronously
278287
279288
Returns:
@@ -305,5 +314,6 @@ def search_adres(
305314
kwargs['_content_type'] = kwargs.get(
306315
'_content_type')
307316
kwargs['_host_index'] = kwargs.get('_host_index')
317+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
308318
return self.search_adres_endpoint.call_with_http_info(**kwargs)
309319

calcasa-api/api/bestemmingsplannen_api.py renamed to calcasa/api/api/bestemmingsplannen_api.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
1616
Calcasa Public API v1
1717
18-
The version of the OpenAPI document: 1.1.3
18+
The version of the OpenAPI document: 1.1.4
1919
2020
Generated by: https://openapi-generator.tech
2121
"""
2222

2323
import re # noqa: F401
2424
import sys # noqa: F401
2525

26-
from calcasa-api.api_client import ApiClient, Endpoint as _Endpoint
27-
from calcasa-api.model_utils import ( # noqa: F401
26+
from calcasa.api.api_client import ApiClient, Endpoint as _Endpoint
27+
from calcasa.api.model_utils import ( # noqa: F401
2828
check_allowed_values,
2929
check_validations,
3030
date,
@@ -33,10 +33,10 @@
3333
none_type,
3434
validate_and_convert_types
3535
)
36-
from calcasa-api.model.bestemmingsdata import Bestemmingsdata
37-
from calcasa-api.model.not_found_problem_details import NotFoundProblemDetails
38-
from calcasa-api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
39-
from calcasa-api.model.problem_details import ProblemDetails
36+
from calcasa.api.model.bestemmingsdata import Bestemmingsdata
37+
from calcasa.api.model.not_found_problem_details import NotFoundProblemDetails
38+
from calcasa.api.model.permissions_denied_problem_details import PermissionsDeniedProblemDetails
39+
from calcasa.api.model.problem_details import ProblemDetails
4040

4141

4242
class BestemmingsplannenApi(object):
@@ -146,6 +146,10 @@ def get_bestemming_by_id(
146146
_host_index (int/None): specifies the index of the server
147147
that we want to use.
148148
Default is read from the configuration.
149+
_request_auths (list): set to override the auth_settings for an a single
150+
request; this effectively ignores the authentication
151+
in the spec for a single request.
152+
Default is None
149153
async_req (bool): execute request asynchronously
150154
151155
Returns:
@@ -177,6 +181,7 @@ def get_bestemming_by_id(
177181
kwargs['_content_type'] = kwargs.get(
178182
'_content_type')
179183
kwargs['_host_index'] = kwargs.get('_host_index')
184+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
180185
kwargs['bag_nummeraanduiding_id'] = \
181186
bag_nummeraanduiding_id
182187
return self.get_bestemming_by_id_endpoint.call_with_http_info(**kwargs)

0 commit comments

Comments
 (0)