File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/code/Magento/Bundle/etc
dev/tests/api-functional/testsuite/Magento/Bundle/Api Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 13
13
<resource ref =" Magento_Catalog::products" />
14
14
</resources >
15
15
</route >
16
- <route url =" /V1/bundle-products/:productSku/links" method =" PUT" >
16
+ <route url =" /V1/bundle-products/:productSku/links/:id " method =" PUT" >
17
17
<service class =" Magento\Bundle\Api\ProductLinkManagementInterface" method =" saveChild" />
18
18
<resources >
19
19
<resource ref =" Magento_Catalog::products" />
Original file line number Diff line number Diff line change @@ -111,12 +111,12 @@ public function testSaveChild()
111
111
*/
112
112
private function saveChild ($ productSku , $ linkedProduct )
113
113
{
114
- $ resourcePath = self ::RESOURCE_PATH . '/:productSku/links ' ;
114
+ $ resourcePath = self ::RESOURCE_PATH . '/:productSku/links/:id ' ;
115
115
$ serviceInfo = [
116
116
'rest ' => [
117
117
'resourcePath ' => str_replace (
118
- [':productSku ' ],
119
- [$ productSku ],
118
+ [':productSku ' , ' :id ' ],
119
+ [$ productSku, $ linkedProduct [ ' id ' ] ],
120
120
$ resourcePath
121
121
),
122
122
'httpMethod ' => \Magento \Framework \Webapi \Rest \Request::HTTP_METHOD_PUT ,
You can’t perform that action at this time.
0 commit comments