jsonapi search by product properties

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!
kopz
Posts: 11
Joined: 18 Jan 2024, 14:11

jsonapi search by product properties

Post by kopz » 14 Jun 2024, 10:51

Is it possible to search by product properties?

Something like:

Code: Select all

 /jsonapi/product?filter[%7E%3D][product.property.gtin]=7894326783&include=product.property 

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

Re: jsonapi search by product properties

Post by aimeos » 17 Jun 2024, 21:57

There's a "product:prop" search function available:

Code: Select all

 /jsonapi/product?filter[%3D%3D][product:prop("gtin",null,"7894326783")]=&include=product.property 
[/quote]
You can only search for exact values, not for strings inside.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply