123456789101112131415161718192021222324252627282930313233343536373839 |
- <?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/testmodule4/:id">
- <service class="Magento\TestModule4\Service\V1\DataObjectServiceInterface" method="getData" />
- <resources>
- <resource ref="Magento_TestModule4::resource1" />
- </resources>
- </route>
- <route method="GET" url="/V1/testmodule4/scalar/:id">
- <service class="Magento\TestModule4\Service\V1\DataObjectServiceInterface" method="scalarResponse" />
- <resources>
- <resource ref="Magento_TestModule4::resource1" />
- </resources>
- </route>
- <route method="POST" url="/V1/testmodule4/:id">
- <service class="Magento\TestModule4\Service\V1\DataObjectServiceInterface" method="updateData" />
- <resources>
- <resource ref="Magento_TestModule4::resource2" />
- </resources>
- </route>
- <route method="POST" url="/V1/testmodule4/:id/nested">
- <service class="Magento\TestModule4\Service\V1\DataObjectServiceInterface" method="nestedData" />
- <resources>
- <resource ref="Magento_TestModule4::resource3" />
- </resources>
- </route>
- <route method="POST" url="/V1/testmodule4/extensibleDataObject/:id">
- <service class="Magento\TestModule4\Service\V1\DataObjectServiceInterface" method="extensibleDataObject" />
- <resources>
- <resource ref="Magento_TestModule4::resource3" />
- </resources>
- </route>
- </routes>
|