Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET digitaleadressen returns error on query parameter adres__icontains #265

Open
sytskevanhasselt opened this issue Oct 15, 2024 · 0 comments
Labels
bug Something isn't working triage

Comments

@sytskevanhasselt
Copy link

sytskevanhasselt commented Oct 15, 2024

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)

@sytskevanhasselt sytskevanhasselt added bug Something isn't working triage labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant