12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?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/configurable-products/:sku/children" method="GET">
- <service class="Magento\ConfigurableProduct\Api\LinkManagementInterface" method="getChildren"/>
- <resources>
- <resource ref="Magento_Catalog::products"/>
- </resources>
- </route>
- <route url="/V1/configurable-products/:sku/children/:childSku" method="DELETE">
- <service class="Magento\ConfigurableProduct\Api\LinkManagementInterface" method="removeChild"/>
- <resources>
- <resource ref="Magento_Catalog::products"/>
- </resources>
- </route>
- <route url="/V1/configurable-products/variation" method="PUT">
- <service class="Magento\ConfigurableProduct\Api\ConfigurableProductManagementInterface" method="generateVariation"/>
- <resources>
- <resource ref="Magento_Catalog::products" />
- </resources>
- </route>
- <route url="/V1/configurable-products/:sku/child" method="POST">
- <service class="Magento\ConfigurableProduct\Api\LinkManagementInterface" method="addChild"/>
- <resources>
- <resource ref="Magento_Catalog::products" />
- </resources>
- </route>
- <route url="/V1/configurable-products/:sku/options/:id" method="GET">
- <service class="Magento\ConfigurableProduct\Api\OptionRepositoryInterface" method="get"/>
- <resources>
- <resource ref="Magento_Catalog::products"/>
- </resources>
- </route>
- <route url="/V1/configurable-products/:sku/options/all" method="GET">
- <service class="Magento\ConfigurableProduct\Api\OptionRepositoryInterface" method="getList"/>
- <resources>
- <resource ref="Magento_Catalog::products"/>
- </resources>
- </route>
- <route url="/V1/configurable-products/:sku/options" method="POST">
- <service class="Magento\ConfigurableProduct\Api\OptionRepositoryInterface" method="save" />
- <resources>
- <resource ref="Magento_Catalog::products" />
- </resources>
- </route>
- <route url="/V1/configurable-products/:sku/options/:id" method="PUT">
- <service class="Magento\ConfigurableProduct\Api\OptionRepositoryInterface" method="save" />
- <resources>
- <resource ref="Magento_Catalog::products" />
- </resources>
- </route>
- <route url="/V1/configurable-products/:sku/options/:id" method="DELETE">
- <service class="Magento\ConfigurableProduct\Api\OptionRepositoryInterface" method="deleteById" />
- <resources>
- <resource ref="Magento_Catalog::products" />
- </resources>
- </route>
- </routes>
|