forked from magento/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebapi.xml
39 lines (39 loc) · 1.66 KB
/
webapi.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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>