diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 7aa750a0..4a88df73 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,11 +4,17 @@ Wijzigingen 1.2.1 (2023-02-14) =========== -* Bumped common-api version -* Fixed generation of openapi.yaml to not include /api/v1 in it's path -* Added a way to turn off Notifications when running in a container +API spec bugfixes +----------------- +* Fixed generation of openapi.yaml to not include ``/api/v1`` +Implementation changes +---------------------- + +* Bumps ``vng-api-common`` to version ``2.0.4`` +* Sets baseUrl to production server +* Added ``ENV`` variable to turn off Notifications when running in a Container 1.2.0 (2022-12-19) =========== diff --git a/src/openapi.yaml b/src/openapi.yaml index 321f00ed..1a9a324a 100644 --- a/src/openapi.yaml +++ b/src/openapi.yaml @@ -14308,7 +14308,8 @@ components: bearerFormat: JWT scheme: bearer servers: - - url: https://catalogi-api.test.vng.cloud/api/v1 + - url: https://catalogi-api.vng.cloud/api/v1 + description: Productie Omgeving tags: - name: besluittypen description: diff --git a/src/ztc/conf/api.py b/src/ztc/conf/api.py index 0fc81c36..5d437052 100644 --- a/src/ztc/conf/api.py +++ b/src/ztc/conf/api.py @@ -20,7 +20,15 @@ SPECTACULAR_SETTINGS = BASE_SPECTACULAR_SETTINGS.copy() SPECTACULAR_SETTINGS.update( { - "SERVERS": [{"url": "https://catalogi-api.test.vng.cloud/api/v1"}], + # Optional list of servers. + # Each entry MUST contain "url", MAY contain "description", "variables" + # e.g. [{'url': 'https://example.com/v1', 'description': 'Text'}, ...] + "SERVERS": [ + { + "url": "https://catalogi-api.vng.cloud/api/v1", + "description": "Productie Omgeving", + } + ], # todo remove this line below when deploying to production "SORT_OPERATION_PARAMETERS": False, }