Skip to content

Commit

Permalink
make it non required
Browse files Browse the repository at this point in the history
  • Loading branch information
NvdLaan committed Dec 17, 2024
1 parent 4e87c30 commit 33dc739
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/apps/addresses/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ class ResidentsSerializer(serializers.Serializer):
_embedded = serializers.DictField()


class GetResidentsSerializer(serializers.Serializer):
obo_access_token = serializers.DictField()


class MeldingenSerializer(serializers.Serializer):
pageNumber = serializers.IntegerField()
pageSize = serializers.IntegerField()
Expand Down
2 changes: 2 additions & 0 deletions app/apps/addresses/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from apps.addresses.serializers import (
AddressSerializer,
DistrictSerializer,
GetResidentsSerializer,
HousingCorporationSerializer,
MeldingenSerializer,
ResidentsSerializer,
Expand Down Expand Up @@ -61,6 +62,7 @@ def update(self, request, bag_id, *args, **kwargs):
url_path="residents",
permission_classes=[permissions.CanAccessBRP],
)
@extend_schema(request={GetResidentsSerializer})
def residents_by_bag_id(self, request, bag_id):
# Get address
try:
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ services:
- database
- zaak-redis
env_file:
- .env
- .local.env
- path: .env
- path: .local.env
required: false
entrypoint: /app/deploy/docker-entrypoint.development.sh
command: python -m debugpy --listen 0.0.0.0:5678 ./manage.py runserver 0.0.0.0:8000
volumes:
Expand Down

0 comments on commit 33dc739

Please sign in to comment.