Currently, and specifically in the expand query parameter, list values are expected to be serialized as a comma separated string (expand=expand=leiddeTotInterneTaken,hadBetrokkenen), but not in other commonly accepted formats, e.g.:
Given that all three styles are seen in the wild and likely to be adopted by (low) level HTTP client implementations, it would make sense to support all styled out of the box.
Specifically, in this case, the params keyword argument used by Python requests by default serializes using the repeat occurrence serialization style, and it would be nice to support this functionality out of the box.
Thema / Theme
Klantinteracties API
Omschrijving / Description
Currently, and specifically in the
expand
query parameter, list values are expected to be serialized as a comma separated string (expand=expand=leiddeTotInterneTaken,hadBetrokkenen
), but not in other commonly accepted formats, e.g.:expand=leiddeTotInterneTaken&expand=hadBetrokkenen
expand[]=leiddeTotInterneTaken&expand[]=hadBetrokkenen
The feature request here would be to:
Demo
Comma-separated expand works as expected
GET /klantinteracties/api/v1/klantcontacten?expand=leiddeTotInterneTaken,hadBetrokkenen
Repeated key style defaults to last occurrence
GET /klantinteracties/api/v1/klantcontacten?expand=leiddeTotInterneTaken&expand=hadBetrokkenen
Bracket notation is ignored entirely
GET /klantinteracties/api/v1/klantcontacten?expand[]=leiddeTotInterneTaken&expand[]=hadBetrokkenen
Toegevoegde waarde / Added value
Given that all three styles are seen in the wild and likely to be adopted by (low) level HTTP client implementations, it would make sense to support all styled out of the box.
Specifically, in this case, the
params
keyword argument used by Python requests by default serializes using the repeat occurrence serialization style, and it would be nice to support this functionality out of the box.Aanvullende opmerkingen / Additional context
No response