magento2-docker/app/code/IpSupply/SyncOrder/etc/webapi.xml

16 lines
650 B
XML
Executable File

<?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="ipsupply/syncorder/sync" method="GET">
<service class="IpSupply\SyncOrder\Api\RepositoryInterface" method="getData"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>
<route url="ipsupply/syncorder/sync" method="POST">
<service class="IpSupply\SyncOrder\Api\RepositoryInterface" method="postData"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>
</routes>