Skip to content

Commit 9159e0c

Browse files
author
hwyu@adobe.com
committed
MC-41512: Quote API improvements
1 parent 5bdf125 commit 9159e0c

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

dev/tests/api-functional/_files/Magento/TestModule1/etc/webapi.xml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@
7272
<resource ref="Magento_TestModule1::resource2" />
7373
</resources>
7474
</route>
75+
<route method="PUT" url="/V1/testmodule1/withParam">
76+
<service class="Magento\TestModule1\Service\V1\AllSoapAndRestInterface" method="update" />
77+
<resources>
78+
<resource ref="Magento_TestModule1::resource1" />
79+
<resource ref="Magento_TestModule1::resource2" />
80+
</resources>
81+
<data>
82+
<parameter name="paramId" force="true">%param_id%</parameter>
83+
</data>
84+
</route>
7585
<route method="GET" url="/V2/testmodule1/:id">
7686
<service class="Magento\TestModule1\Service\V2\AllSoapAndRestInterface" method="item" />
7787
<resources>
@@ -103,10 +113,4 @@
103113
<resource ref="Magento_TestModule1::resource1" />
104114
</resources>
105115
</route>
106-
<route method="PUT" url="/V2/testmodule1-withparam">
107-
<service class="Magento\TestModule1\Service\V2\AllSoapAndRestInterface" method="update" />
108-
<data>
109-
<parameter name="paramId" force="true">%param_id%</parameter>
110-
</data>
111-
</route>
112116
</routes>

dev/tests/api-functional/testsuite/Magento/Webapi/Routing/CoreRoutingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function testRequestParamsUnexpectedValueException(): void
105105

106106
$serviceInfo = [
107107
'rest' => [
108-
'resourcePath' => '/V2/testmodule1-withparam',
108+
'resourcePath' => '/V1/testmodule1/withParam',
109109
'httpMethod' => Request::HTTP_METHOD_PUT,
110110
],
111111
];

0 commit comments

Comments
 (0)