12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?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>
|