init
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
|
||||
<acl>
|
||||
<resources>
|
||||
<resource id="Magento_Backend::admin">
|
||||
<resource id="Magento_TestModule5::all" title="TestModule5" sortOrder="1">
|
||||
<resource id="Magento_TestModule5::resource1" title="Resource1" sortOrder="20"/>
|
||||
<resource id="Magento_TestModule5::resource2" title="Resource2" sortOrder="10"/>
|
||||
<resource id="Magento_TestModule5::resource3" title="Resource3" sortOrder="30"/>
|
||||
</resource>
|
||||
</resource>
|
||||
</resources>
|
||||
</acl>
|
||||
</config>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<preference for="Magento\TestModule5\Service\V1\AllSoapAndRestInterface" type="Magento\TestModule5\Service\V1\AllSoapAndRest" />
|
||||
<preference for="Magento\TestModule5\Service\V2\AllSoapAndRestInterface" type="Magento\TestModule5\Service\V2\AllSoapAndRest" />
|
||||
<preference for="Magento\TestModule5\Service\V1\OverrideServiceInterface" type="Magento\TestModule5\Service\V1\OverrideService" />
|
||||
</config>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
|
||||
<module name="Magento_TestModule5" />
|
||||
</config>
|
||||
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
|
||||
<route method="GET" url="/V1/TestModule5/:entityId">
|
||||
<service class="Magento\TestModule5\Service\V1\AllSoapAndRestInterface" method="item" />
|
||||
<resources>
|
||||
<resource ref="Magento_TestModule5::resource1" />
|
||||
</resources>
|
||||
</route>
|
||||
<route method="GET" url="/V1/TestModule5">
|
||||
<service class="Magento\TestModule5\Service\V1\AllSoapAndRestInterface" method="items" />
|
||||
<resources>
|
||||
<resource ref="Magento_TestModule5::resource2" />
|
||||
</resources>
|
||||
</route>
|
||||
<route method="POST" url="/V1/TestModule5">
|
||||
<service class="Magento\TestModule5\Service\V1\AllSoapAndRestInterface" method="create" />
|
||||
<resources>
|
||||
<resource ref="Magento_TestModule5::resource3" />
|
||||
</resources>
|
||||
</route>
|
||||
<route method="PUT" url="/V1/TestModule5/:entityId">
|
||||
<service class="Magento\TestModule5\Service\V1\AllSoapAndRestInterface" method="update" />
|
||||
<resources>
|
||||
<resource ref="Magento_TestModule5::resource1" />
|
||||
<resource ref="Magento_TestModule5::resource2" />
|
||||
</resources>
|
||||
</route>
|
||||
<route method="PUT" url="/V1/TestModule5/:parentId/nestedResource/:entityId">
|
||||
<service class="Magento\TestModule5\Service\V1\AllSoapAndRestInterface" method="nestedUpdate" />
|
||||
<resources>
|
||||
<resource ref="Magento_TestModule5::resource1" />
|
||||
<resource ref="Magento_TestModule5::resource2" />
|
||||
</resources>
|
||||
</route>
|
||||
<route method="PUT" url="/V1/TestModule5/OverrideService/:parentId/nestedResource/:entityId">
|
||||
<service class="Magento\TestModule5\Service\V1\OverrideServiceInterface" method="scalarUpdate" />
|
||||
<resources>
|
||||
<resource ref="Magento_TestModule5::resource1" />
|
||||
<resource ref="Magento_TestModule5::resource2" />
|
||||
</resources>
|
||||
</route>
|
||||
<route method="GET" url="/V2/TestModule5/:id">
|
||||
<service class="Magento\TestModule5\Service\V2\AllSoapAndRestInterface" method="item" />
|
||||
<resources>
|
||||
<resource ref="Magento_TestModule5::resource1" />
|
||||
</resources>
|
||||
</route>
|
||||
<route method="GET" url="/V2/TestModule5">
|
||||
<service class="Magento\TestModule5\Service\V2\AllSoapAndRestInterface" method="items" />
|
||||
<resources>
|
||||
<resource ref="Magento_TestModule5::resource2" />
|
||||
</resources>
|
||||
</route>
|
||||
<route method="POST" url="/V2/TestModule5">
|
||||
<service class="Magento\TestModule5\Service\V2\AllSoapAndRestInterface" method="create" />
|
||||
<resources>
|
||||
<resource ref="Magento_TestModule5::resource3" />
|
||||
</resources>
|
||||
</route>
|
||||
<route method="PUT" url="/V2/TestModule5/:id">
|
||||
<service class="Magento\TestModule5\Service\V2\AllSoapAndRestInterface" method="update" />
|
||||
<resources>
|
||||
<resource ref="Magento_TestModule5::resource1" />
|
||||
<resource ref="Magento_TestModule5::resource2" />
|
||||
</resources>
|
||||
</route>
|
||||
<route method="DELETE" url="/V2/TestModule5/:id">
|
||||
<service class="Magento\TestModule5\Service\V2\AllSoapAndRestInterface" method="delete" />
|
||||
<resources>
|
||||
<resource ref="Magento_TestModule5::resource1" />
|
||||
</resources>
|
||||
</route>
|
||||
</routes>
|
||||
Reference in New Issue
Block a user