The documentation of Yii2 REST Web Services explain that we can filter the searched collection through query params passed via URL in a GET HTTP request.
From doc: "Addionally, you can sort collections like localhost/users?sort=email or localhost/users?sort=-email. Filtering collections like localhost/users?filter[id]=10 or localhost/users?filter[email][like]=gmail.com could be implemented using data filters"
My question is how to use query params for an IN condition?
The IN condition is supported by data filter class of the framework but It does not work as I am doing it. I tried these:
localhost/api/v1/users?filter[id][in]=1,2,3 (return empty response)
localhost/api/v1/users?filter[id][in]=[1,2,3] (return error message ‘Operator “in” requires multiple operands.’)
…and other ways same situation