From cfce9dc67d5e41684fb3574ad7a7d20d0f55ef41 Mon Sep 17 00:00:00 2001 From: Steven Bal Date: Thu, 3 Oct 2024 11:25:29 +0200 Subject: [PATCH] :memo: [#248] Use correct API root in redoc OAS view --- src/openklant/components/contactgegevens/api/schema.py | 1 + src/openklant/components/contactgegevens/openapi.yaml | 2 ++ src/openklant/components/klantinteracties/api/schema.py | 1 + src/openklant/components/klantinteracties/openapi.yaml | 2 ++ 4 files changed, 6 insertions(+) diff --git a/src/openklant/components/contactgegevens/api/schema.py b/src/openklant/components/contactgegevens/api/schema.py index f0d8b551..d0e0f5fb 100644 --- a/src/openklant/components/contactgegevens/api/schema.py +++ b/src/openklant/components/contactgegevens/api/schema.py @@ -9,6 +9,7 @@ "TITLE": "contactgegevens", "DESCRIPTION": description, "VERSION": settings.CONTACTGEGEVENS_API_VERSION, + "SERVERS": [{"url": "/contactgegevens/api/v1"}], "TAGS": [ {"name": "organisaties"}, {"name": "personen"}, diff --git a/src/openklant/components/contactgegevens/openapi.yaml b/src/openklant/components/contactgegevens/openapi.yaml index 8f235237..34a5d744 100644 --- a/src/openklant/components/contactgegevens/openapi.yaml +++ b/src/openklant/components/contactgegevens/openapi.yaml @@ -686,6 +686,8 @@ components: in: header name: Authorization description: Token-based authentication with required prefix "Token" +servers: +- url: /contactgegevens/api/v1 tags: - name: organisaties - name: personen diff --git a/src/openklant/components/klantinteracties/api/schema.py b/src/openklant/components/klantinteracties/api/schema.py index 4e88091b..47a03c9f 100644 --- a/src/openklant/components/klantinteracties/api/schema.py +++ b/src/openklant/components/klantinteracties/api/schema.py @@ -9,6 +9,7 @@ "TITLE": "klantinteracties", "DESCRIPTION": description, "VERSION": settings.KLANTINTERACTIES_API_VERSION, + "SERVERS": [{"url": "/klantinteracties/api/v1"}], "TAGS": [ {"name": "actoren"}, {"name": "actor klantcontacten"}, diff --git a/src/openklant/components/klantinteracties/openapi.yaml b/src/openklant/components/klantinteracties/openapi.yaml index 26eda611..c50ae983 100644 --- a/src/openklant/components/klantinteracties/openapi.yaml +++ b/src/openklant/components/klantinteracties/openapi.yaml @@ -5188,6 +5188,8 @@ components: in: header name: Authorization description: Token-based authentication with required prefix "Token" +servers: +- url: /klantinteracties/api/v1 tags: - name: actoren - name: actor klantcontacten