[Feature]: Filter by custom attributes
Pre-submission checklist
- I have searched the existing issues and this feature has not already been requested.
Is your feature request related to a problem? Please describe.
I'm currently unable to filter products through the UnoPIM API using a custom product attributs.
For example, if a product has a custom attributs such as status_code with select option ( which I created alongside with status ). When I get API for all product (/api/v1/rest/products ) with a parameters
{"status_code":[{"operator":"=","value":"1"}]}I got error 422 Unprocessable Content :
{
"success": false,
"message": "Filter on property \"status_code\" is not supported or does not support operator \"=\"."
}However, filtering using the predefined status attribute works as described in the documentation:
{"status":[{"operator":"=","value":"1"}]}This makes it difficult to use custom attributes as filters when integrating UnoPim with external source queue through API.
Describe the solution you'd like
I would like the UnoPim API to support filtering products by custom attributes using the same filter syntax and operators available for predefined product attributes
For example:
{"status_code":[{"operator":"=","value":"1"}]}should filter the products based on the value of the custom status_code attribute, in the same way that the predefined status attribute can be filtered
Describe alternatives you've considered
No response
Additional Context
No response
Source: unopim/unopim