File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
_files/Magento/TestModule1/etc
testsuite/Magento/Webapi/Routing Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 72
72
<resource ref =" Magento_TestModule1::resource2" />
73
73
</resources >
74
74
</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 >
75
85
<route method =" GET" url =" /V2/testmodule1/:id" >
76
86
<service class =" Magento\TestModule1\Service\V2\AllSoapAndRestInterface" method =" item" />
77
87
<resources >
103
113
<resource ref =" Magento_TestModule1::resource1" />
104
114
</resources >
105
115
</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 >
112
116
</routes >
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ public function testRequestParamsUnexpectedValueException(): void
105
105
106
106
$ serviceInfo = [
107
107
'rest ' => [
108
- 'resourcePath ' => '/V2 /testmodule1-withparam ' ,
108
+ 'resourcePath ' => '/V1 /testmodule1/withParam ' ,
109
109
'httpMethod ' => Request::HTTP_METHOD_PUT ,
110
110
],
111
111
];
You can’t perform that action at this time.
0 commit comments