Skip to content

Instantly share code, notes, and snippets.

@xcommerce-gists
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xcommerce-gists/9210793 to your computer and use it in GitHub Desktop.
Save xcommerce-gists/9210793 to your computer and use it in GitHub Desktop.
Temporary Magento gist
<?xml version="1.0"?>
<!--
/**
* {license_notice}
*
* @copyright {copyright}
* @license {license_link}
*/
-->
<config>
<service class="\Magento\TestModule1\Service\V1\AllSoapAndRestInterface" baseUrl="/V1/testmodule1">
<rest-route httpMethod="GET" method="item" resources="Magento_TestModule1::resource1">/:id</rest-route>
</service>
<service class="\Magento\TestModule1\Service\V2\AllSoapAndRestInterface" baseUrl="/V2/testmodule1">
<rest-route httpMethod="GET" method="item" resources="Magento_TestModule1::resource1">/:id</rest-route>
<rest-route httpMethod="POST" method="create" resources="Magento_TestModule1::resource1, Magento_TestModule1::resource2"></rest-route>
<rest-route httpMethod="DELETE" method="delete" isSecure="true" resources="Magento_TestModule1::resource2">/:id</rest-route>
</service>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment