Build filter

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Oleh
Posts: 14
Joined: 13 Jul 2020, 08:11

Build filter

Post by Oleh » 13 Jul 2020, 10:40

Hi,
I use "aimeos/aimeos-laravel": "~2020.07"
I try to build filter.
I get information from official docs. This is url: https://aimeos.org/docs/Developers/Admi ... _filtering

This is my url:
http://localhost/jsonapi/product?filter[&&][<][product.status]=0&filter[&&][=~][product.label]=demo

But url always returns the whole list of products no matter how I change the filter settings.
Thanks

User avatar
aimeos
Administrator
Posts: 8636
Joined: 01 Jan 1970, 00:00

Re: Build filter

Post by aimeos » 15 Jul 2020, 10:12

There is a [] pair missing in your URL (also in the docs, which is fixed now):

Code: Select all

http://localhost/jsonapi/product?filter[&&][][<][product.status]=0&filter[&&][][=~][product.label]=demo
Please keep in mind that the special chars must be escaped (esp. "=" in "=~").
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Oleh
Posts: 14
Joined: 13 Jul 2020, 08:11

Re: Build filter

Post by Oleh » 15 Jul 2020, 12:08

Thank you

Post Reply