skip to Main Content

How to pass an array in Magento 2 custom rest api?

Magento 2 custom rest api,I can not get an array in modalrepository, How can i pass an array as parameter ? Webapi.xml <route method="POST" url="/V1/topmarkens/productlists"> <service class="MeridianTopMarkenApiTopMarkenRepositoryInterface" method="productFilterByBrand"/> <resources> <resource ref="anonymous"/> </resources> <data> <parameter name="types" force="true">%types%</parameter> </data> </route> TopMarkenRepositoryInterface.php /**…

VIEW QUESTION
Back To Top
Search