How to add filter to custom API?
-
12-04-2021 - |
Вопрос
I have created a custom API taking help from here. Now i want to add filter to this API. Like if i want to get products filtered with some specific sku.
How can i do that?
thanks
Решение 2
After wasting much time, found the solution here.
need to pass the variable in wsdl.xml file:
<message name="customapimoduleProductListRequest">
<part name="sessionId" type="xsd:string" />
<part name="customvar" type="xsd:string" />
</message>
Другие советы
You can refer below URL:
https://devdocs.magento.com/guides/m1x/api/rest/get_filters.html
If my answer helped you, you can accept the answer so it can help others also.
Не связан с magento.stackexchange