Re: Help with Json API - Filtering the product list
Posted: 20 Mar 2018, 16:31
Cloud native, ultra fast e-commerce framework
https://aimeos.org/help/
If you put that into the address line of you browser, the "=~" will be interpreted as "filter[", "=" and "~][product..." which isn't passed to the server correctly. The second problem is that "product.type" is a added to the result for simplification but only "product.type.code" remains a valid search key.kisese wrote: I get all results instead of the filtered result:
http://localhost:8000/jsonapi/product?filter[=~][product.type]=select
This filter does return all products whose type is lexicographically beyond "select". In the latest Aimeos version it will return products of type "voucher", in your version it will return nothing.kisese wrote: Getting products of type "select" does not return correct data:
http://localhost:8000/jsonapi/product?filter[>][product.type.code]=select
Code: Select all
http://localhost:8000/jsonapi/product?filter%5B%3D%3D%5D%5Bproduct.type.code%5D=select