문제

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 ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top