-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻ Replace drf-yasg => drf-spectacular
- Loading branch information
1 parent
c8cf68a
commit 3d26674
Showing
16 changed files
with
231 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,13 @@ | ||
from django.conf import settings | ||
|
||
from drf_yasg import openapi | ||
|
||
description = """ | ||
Een API om de referentielijsten in het domein klantinteracties te raadplegen en beheren. | ||
""".strip() | ||
|
||
info = openapi.Info( | ||
title="Klantinteracties Referentielijsten", | ||
default_version=settings.REFERENTIELIJSTEN_API_VERSION, | ||
description=description, | ||
contact=openapi.Contact( | ||
email="[email protected]", | ||
url="https://vng-realisatie.github.io/klantinteracties/", | ||
), | ||
license=openapi.License( | ||
name="EUPL 1.2", url="https://opensource.org/licenses/EUPL-1.2" | ||
), | ||
) | ||
# Spectacular settings overrides | ||
custom_settings = { | ||
"TITLE": "Klantinteracties Referentielijsten", | ||
"VERSION": settings.REFERENTIELIJSTEN_API_VERSION, | ||
"DESCRIPTION": description, | ||
"SCHEMA_PATH_PREFIX_TRIM": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ class Meta: | |
"locatie", | ||
"naam", | ||
] | ||
|
||
__doc__ = Meta.model.__doc__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ class Meta: | |
"indicatie_actief", | ||
"naam", | ||
] | ||
|
||
__doc__ = Meta.model.__doc__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,5 @@ class Meta: | |
"ingangsdatum_land", | ||
"einddatum_land", | ||
] | ||
|
||
__doc__ = Meta.model.__doc__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ class Meta: | |
"indicatie_actief", | ||
"naam", | ||
] | ||
|
||
__doc__ = Meta.model.__doc__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ class Meta: | |
"indicatie_actief", | ||
"naam", | ||
] | ||
|
||
__doc__ = Meta.model.__doc__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ class Meta: | |
"indicatie_actief", | ||
"naam", | ||
] | ||
|
||
__doc__ = Meta.model.__doc__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ class Meta: | |
"indicatie_actief", | ||
"naam", | ||
] | ||
|
||
__doc__ = Meta.model.__doc__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/openklant/components/referentielijsten/api/viewsets/externe_registers.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/openklant/components/referentielijsten/api/viewsets/kanalen.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/openklant/components/referentielijsten/api/viewsets/landen.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/openklant/components/referentielijsten/api/viewsets/soorten_digitaal_adres.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/openklant/components/referentielijsten/api/viewsets/soorten_object.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/openklant/components/referentielijsten/api/viewsets/soorten_objectid.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/openklant/components/referentielijsten/api/viewsets/talen.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters