I have product X which is configurable. To product X I have assigned product Y and Z as simple ones.
Both simple has attribute "Color". Now product Y has color: 123, product Z has color: 456. Both have also visibility as "non visible individually".
I'd like to search product X using in search criteria value 123 or 456 and kind of field "color".
Is it possible? Do you know any tip how can I reach it?
I am using Magento 2.4 and want to get data by REST API.