maykinmedia / open-klant

Registratiecomponent voor de opslag en ontsluiting van klantgegevens volgens de Klantinteracties API-specificatie.
Other
2 stars 3 forks source link

GET digitaleadressen returns error on query parameter `adres__icontains` #265

Open sytskevanhasselt opened 1 month ago

sytskevanhasselt commented 1 month ago

Product versie / Product version

2.2.0

Omschrijf het probleem / Describe the bug

The openapi.yml of version 2.2.0 lists the following query parameter for the GET on /digitaleadressen: adres__icontains

However, when we use this query parameter, the api returns a FieldError:

FieldError at /klantinteracties/api/v1/digitaleadressen Unsupported lookup 'icontains' for CharField or join on the field not permitted, perhaps you meant icontains or contains?

Stappen om te reproduceren / Steps to reproduce

  1. From Postman, run the following GET: https://www.mijnopenklant.nl/klantinteracties/api/v1/digitaleadressen?adres__icontains=0618644222

Verwacht gedrag / Expected behavior

I would expect a valid response with no results (or: in our situation 4 results)