Hi Sylius people!
I would like to get products by attribute values via the API. The current Sylius APIv2 (https://master.demo.sylius.com/api/v2/docs) supports only the retrieval of products by name or taxons. What would be the recommended approach to implement this?
I see currently 2 possible solution proposals:
- Writing a custom endpoint and querying the database and output some json
- Extend the API-Platform Product resource and adding some attribute filter
What would be your approach?