JSONAPI filter in Service

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!
spider
Posts: 7
Joined: 05 Apr 2023, 13:14

JSONAPI filter in Service

Post by spider » 24 Apr 2023, 17:34

Hi

I am on the aimeos-headless. The "filter" parameter does not seem working in "service" endpoint in both version 2022.10 and 2023.04.

I have no issue filtering by attributes in both "product" and "supplier". e.g. "filter[==][product.type]=default" and "filter[==][supplier.code]=mysupplier". But it does not respond whatsoever for service. For example, I was trying to filter by service type using "filter[==][service.type]=delivery".

Thanks.

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

Re: JSONAPI filter in Service

Post by aimeos » 26 Apr 2023, 06:49

Filtering services is only available by type and requires a special parameter "cs_type":
https://github.com/aimeos/ai-client-jso ... d.php#L182
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply