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.

许可以下: CC-BY-SA归因
scroll top