I am trying to perform a filter on a json:api endpoint.
?filter[name]=test name
works fine if the name in db is exactly test name
. But I want the server to return me values if name is Test name
,tEst name
or any other combination possible. How can I do this?
Thank you.
The JSON:API specification does not define the filter strategy:
It contains a recommendation for filtering strategy that matches your URL design:
But even that recommendation does not cover what comparison operator should be used. It also doesn't cover if that should be case sensitive or not. It depends on the filtering strategy picked by the concrete implementation.
Please note that also a strategy encoding the comparison operator in the URL would be valid. E.g. you may encode the comparison operator in the query parameter like this: