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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?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 url="/V1/bundle-products/:sku/links/:optionId" method="POST">
<service class="Magento\Bundle\Api\ProductLinkManagementInterface" method="addChildByProductSku"/>
<resources>
<resource ref="Magento_Catalog::products"/>
</resources>
</route>
<route url="/V1/bundle-products/:sku/links/:id" method="PUT">
<service class="Magento\Bundle\Api\ProductLinkManagementInterface" method="saveChild"/>
<resources>
<resource ref="Magento_Catalog::products"/>
</resources>
</route>
<route url="/V1/bundle-products/:productSku/children" method="GET">
<service class="Magento\Bundle\Api\ProductLinkManagementInterface" method="getChildren"/>
<resources>
<resource ref="Magento_Catalog::products"/>
</resources>
</route>
<route url="/V1/bundle-products/:sku/options/:optionId/children/:childSku" method="DELETE">
<service class="Magento\Bundle\Api\ProductLinkManagementInterface" method="removeChild"/>
<resources>
<resource ref="Magento_Catalog::products"/>
</resources>
</route>
<route url="/V1/bundle-products/:sku/options/all" method="GET">
<service class="Magento\Bundle\Api\ProductOptionRepositoryInterface" method="getList" />
<resources>
<resource ref="Magento_Catalog::products" />
</resources>
</route>
<route url="/V1/bundle-products/options/types" method="GET">
<service class="Magento\Bundle\Api\ProductOptionTypeListInterface" method="getItems" />
<resources>
<resource ref="Magento_Catalog::products" />
</resources>
</route>
<route url="/V1/bundle-products/:sku/options/:optionId" method="GET">
<service class="Magento\Bundle\Api\ProductOptionRepositoryInterface" method="get" />
<resources>
<resource ref="Magento_Catalog::products" />
</resources>
</route>
<route url="/V1/bundle-products/options/add" method="POST">
<service class="Magento\Bundle\Api\ProductOptionManagementInterface" method="save" />
<resources>
<resource ref="Magento_Catalog::products" />
</resources>
</route>
<route url="/V1/bundle-products/options/:optionId" method="PUT">
<service class="Magento\Bundle\Api\ProductOptionManagementInterface" method="save" />
<resources>
<resource ref="Magento_Catalog::products" />
</resources>
</route>
<route url="/V1/bundle-products/:sku/options/:optionId" method="DELETE">
<service class="Magento\Bundle\Api\ProductOptionRepositoryInterface" method="deleteById" />
<resources>
<resource ref="Magento_Catalog::products" />
</resources>
</route>
</routes>