Questions tagged «postman»

3
Magento 2 Api获取错误'%fieldName是必填字段'?
使用url的POST方法时我未得到结果(id),即rest / V1 / hello / test / 3 屏幕截图: 我已点击此链接以供参考,请单击此处 1)webapi.xml <?xml version="1.0"?> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd"> <route url="/V1/hello/name/:name" method="GET"> <service class="Inchoo\Hello\Api\HelloInterface" method="name"/> <resources> <resource ref="anonymous"/> </resources> </route> <route url="/V1/hello/test/:test" method="POST"> <service class="Inchoo\Hello\Api\TestInterface" method="test"/> <resources> <resource ref="anonymous"/> </resources> </route> </routes> 2)TestInterface.php <?php namespace Inchoo\Hello\Api; interface TestInterface { /** * Returns …
9 magento2  api  rest  postman 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.