-
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.
Removes pagination as per the reference openapi spec.
- Loading branch information
1 parent
c844f2e
commit 0980238
Showing
20 changed files
with
5,737 additions
and
28 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
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" | ||
), | ||
) |
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
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
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
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
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
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
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
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
4 changes: 2 additions & 2 deletions
4
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from rest_framework import viewsets | ||
from rest_framework.pagination import PageNumberPagination | ||
|
||
from ...models import ExternRegister | ||
from ..serializers import ExternRegisterSerializer | ||
|
||
|
||
class ExternRegisterViewSet(viewsets.ModelViewSet): | ||
__doc__ = ExternRegister.__doc__ | ||
lookup_field = "code" | ||
pagination_class = PageNumberPagination | ||
pagination_class = None | ||
queryset = ExternRegister.objects.order_by("-pk") | ||
serializer_class = ExternRegisterSerializer |
4 changes: 2 additions & 2 deletions
4
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from rest_framework import viewsets | ||
from rest_framework.pagination import PageNumberPagination | ||
|
||
from ...models import Kanaal | ||
from ..serializers import KanaalSerializer | ||
|
||
|
||
class KanaalViewSet(viewsets.ModelViewSet): | ||
__doc__ = Kanaal.__doc__ | ||
lookup_field = "code" | ||
pagination_class = PageNumberPagination | ||
pagination_class = None | ||
queryset = Kanaal.objects.order_by("-pk") | ||
serializer_class = KanaalSerializer |
5 changes: 2 additions & 3 deletions
5
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
from rest_framework import viewsets | ||
from rest_framework.pagination import PageNumberPagination | ||
|
||
from ...models import Land | ||
from ..serializers import LandSerializer | ||
|
||
|
||
class LandViewSet(viewsets.ModelViewSet): | ||
# TODO? filterset_class filter vigerend? | ||
__doc__ = Land.__doc__ | ||
lookup_field = "landcode" | ||
pagination_class = PageNumberPagination | ||
pagination_class = None | ||
queryset = Land.objects.order_by("-pk") | ||
serializer_class = LandSerializer |
4 changes: 2 additions & 2 deletions
4
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from rest_framework import viewsets | ||
from rest_framework.pagination import PageNumberPagination | ||
|
||
from ...models import SoortDigitaalAdres | ||
from ..serializers import SoortDigitaalAdresSerializer | ||
|
||
|
||
class SoortDigitaalAdresViewSet(viewsets.ModelViewSet): | ||
__doc__ = SoortDigitaalAdres.__doc__ | ||
lookup_field = "code" | ||
pagination_class = PageNumberPagination | ||
pagination_class = None | ||
queryset = SoortDigitaalAdres.objects.order_by("-pk") | ||
serializer_class = SoortDigitaalAdresSerializer |
4 changes: 2 additions & 2 deletions
4
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from rest_framework import viewsets | ||
from rest_framework.pagination import PageNumberPagination | ||
|
||
from ...models import SoortObject | ||
from ..serializers import SoortObjectSerializer | ||
|
||
|
||
class SoortObjectViewSet(viewsets.ModelViewSet): | ||
__doc__ = SoortObject.__doc__ | ||
lookup_field = "code" | ||
pagination_class = PageNumberPagination | ||
pagination_class = None | ||
queryset = SoortObject.objects.order_by("-pk") | ||
serializer_class = SoortObjectSerializer |
4 changes: 2 additions & 2 deletions
4
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from rest_framework import viewsets | ||
from rest_framework.pagination import PageNumberPagination | ||
|
||
from ...models import SoortObjectid | ||
from ..serializers import SoortObjectidSerializer | ||
|
||
|
||
class SoortObjectidViewSet(viewsets.ModelViewSet): | ||
__doc__ = SoortObjectid.__doc__ | ||
lookup_field = "code" | ||
pagination_class = PageNumberPagination | ||
pagination_class = None | ||
queryset = SoortObjectid.objects.order_by("-pk") | ||
serializer_class = SoortObjectidSerializer |
4 changes: 2 additions & 2 deletions
4
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from rest_framework import viewsets | ||
from rest_framework.pagination import PageNumberPagination | ||
|
||
from ...models import Taal | ||
from ..serializers import TaalSerializer | ||
|
||
|
||
class TaalViewSet(viewsets.ModelViewSet): | ||
__doc__ = Taal.__doc__ | ||
lookup_field = "code" | ||
pagination_class = PageNumberPagination | ||
pagination_class = None | ||
queryset = Taal.objects.order_by("-pk") | ||
serializer_class = TaalSerializer |
Oops, something went wrong.