@@ -16,6 +16,14 @@ This API is documented in **OpenAPI format version 3** you can use tools like th
16
16
17
17
## Changelog
18
18
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
+
19
27
### 2022-03-22 (v1.1.3)
20
28
- Add 402 (Payment required) and 422 (Unprocessable entity) as potential response for ` PATCH /v1/waarderingen/{id} ` .
21
29
@@ -116,8 +124,8 @@ Authentication is done via [OAuth2](https://oauth.net/2/) and the [client creden
116
124
117
125
This Python package is automatically generated by the [ OpenAPI Generator] ( https://openapi-generator.tech ) project:
118
126
119
- - API version: 1.1.3
120
- - Package version: 1.1.3
127
+ - API version: 1.1.4
128
+ - Package version: 1.1.4
121
129
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
122
130
For more information, please visit [ https://www.calcasa.nl/contact ] ( https://www.calcasa.nl/contact )
123
131
@@ -137,7 +145,7 @@ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
137
145
138
146
Then import the package:
139
147
``` python
140
- import calcasa- api
148
+ import calcasa. api
141
149
```
142
150
143
151
### Setuptools
@@ -151,7 +159,7 @@ python setup.py install --user
151
159
152
160
Then import the package:
153
161
``` python
154
- import calcasa- api
162
+ import calcasa. api
155
163
```
156
164
157
165
## Getting Started
@@ -161,17 +169,17 @@ Please follow the [installation procedure](#installation--usage) and then run th
161
169
``` python
162
170
163
171
import time
164
- import calcasa- api
172
+ import calcasa. api
165
173
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
172
180
# Defining the host is optional and defaults to https://api.calcasa.nl
173
181
# See configuration.py for a list of all supported configuration parameters.
174
- configuration = calcasa- api.Configuration(
182
+ configuration = calcasa. api.Configuration(
175
183
host = " https://api.calcasa.nl"
176
184
)
177
185
@@ -181,14 +189,14 @@ configuration = calcasa-api.Configuration(
181
189
# satisfies your auth use case.
182
190
183
191
# Configure OAuth2 access token for authorization: oauth
184
- configuration = calcasa- api.Configuration(
192
+ configuration = calcasa. api.Configuration(
185
193
host = " https://api.calcasa.nl"
186
194
)
187
195
configuration.access_token = ' YOUR_ACCESS_TOKEN'
188
196
189
197
190
198
# 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:
192
200
# Create an instance of the API class
193
201
api_instance = adressen_api.AdressenApi(api_client)
194
202
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:
197
205
# Adres info op basis van BAG Nummeraanduiding Id.
198
206
api_response = api_instance.get_adres(bag_nummeraanduiding_id)
199
207
pprint(api_response)
200
- except calcasa- api.ApiException as e:
208
+ except calcasa. api.ApiException as e:
201
209
print (" Exception when calling AdressenApi->get_adres: %s \n " % e)
202
210
```
203
211
328
336
329
337
330
338
## 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
332
340
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
333
341
334
342
Solution 1:
335
343
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 `
338
346
339
347
Solution 2:
340
348
Before importing the package, adjust the maximum recursion limit as shown below:
341
349
```
342
350
import sys
343
351
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 *
347
355
```
348
356
0 commit comments