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