123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491 |
- <?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">
- <!-- Product Service -->
- <route url="/V1/products" method="POST">
- <service class="Magento\Catalog\Api\ProductRepositoryInterface" method="save"/>
- <resources>
- <resource ref="Magento_Catalog::products" />
- </resources>
- </route>
- <route url="/V1/products/:sku" method="PUT">
- <service class="Magento\Catalog\Api\ProductRepositoryInterface" method="save" />
- <resources>
- <resource ref="Magento_Catalog::products" />
- </resources>
- </route>
- <route url="/V1/products/:sku" method="DELETE">
- <service class="Magento\Catalog\Api\ProductRepositoryInterface" method="deleteById"/>
- <resources>
- <resource ref="Magento_Catalog::products" />
- </resources>
- </route>
- <route url="/V1/products" method="GET">
- <service class="Magento\Catalog\Api\ProductRepositoryInterface" method="getList"/>
- <resources>
- <resource ref="Magento_Catalog::products" />
- </resources>
- </route>
- <route url="/V1/products/:sku" method="GET">
- <service class="Magento\Catalog\Api\ProductRepositoryInterface" method="get"/>
- <resources>
- <resource ref="Magento_Catalog::products" />
- </resources>
- </route>
- <route url="/V1/products/attributes/types" method="GET">
- <service class="Magento\Catalog\Api\ProductAttributeTypesListInterface" method="getItems"/>
- <resources>
- <resource ref="Magento_Catalog::attributes_attributes" />
- </resources>
- </route>
- <route url="/V1/products/attributes/:attributeCode" method="GET">
- <service class="Magento\Catalog\Api\ProductAttributeRepositoryInterface" method="get"/>
- <resources>
- <resource ref="Magento_Catalog::attributes_attributes" />
- </resources>
- </route>
- <route url="/V1/products/attributes" method="GET">
- <service class="Magento\Catalog\Api\ProductAttributeRepositoryInterface" method="getList" />
- <resources>
- <resource ref="Magento_Catalog::attributes_attributes" />
- </resources>
- </route>
- <route url="/V1/categories/attributes/:attributeCode" method="GET">
- <service class="Magento\Catalog\Api\CategoryAttributeRepositoryInterface" method="get" />
- <resources>
- <resource ref="Magento_Catalog::attributes_attributes" />
- </resources>
- </route>
- <route url="/V1/categories/attributes" method="GET">
- <service class="Magento\Catalog\Api\CategoryAttributeRepositoryInterface" method="getList" />
- <resources>
- <resource ref="Magento_Catalog::attributes_attributes" />
- </resources>
- </route>
- <route url="/V1/categories/attributes/:attributeCode/options" method="GET">
- <service class="Magento\Catalog\Api\CategoryAttributeOptionManagementInterface" method="getItems" />
- <resources>
- <resource ref="Magento_Catalog::attributes_attributes" />
- </resources>
- </route>
- <route url="/V1/products/attributes" method="POST">
- <service class="Magento\Catalog\Api\ProductAttributeRepositoryInterface" method="save"/>
- <resources>
- <resource ref="Magento_Catalog::attributes_attributes" />
- </resources>
- </route>
- <route url="/V1/products/attributes/:attributeCode" method="PUT">
- <service class="Magento\Catalog\Api\ProductAttributeRepositoryInterface" method="save"/>
- <resources>
- <resource ref="Magento_Catalog::attributes_attributes" />
- </resources>
- </route>
- <route url="/V1/products/attributes/:attributeCode" method="DELETE">
- <service class="Magento\Catalog\Api\ProductAttributeRepositoryInterface" method="deleteById"/>
- <resources>
- <resource ref="Magento_Catalog::attributes_attributes" />
- </resources>
- </route>
- <route url="/V1/products/types" method="GET">
- <service class="Magento\Catalog\Api\ProductTypeListInterface" method="getProductTypes"/>
- <resources>
- <resource ref="Magento_Catalog::products"/>
- </resources>
- </route>
- <route url="/V1/products/attribute-sets/sets/list" method="GET">
- <service class="Magento\Catalog\Api\AttributeSetRepositoryInterface" method="getList"/>
- <resources>
- <resource ref="Magento_Catalog::sets"/>
- </resources>
- </route>
- <route url="/V1/products/attribute-sets/:attributeSetId" method="GET">
- <service class="Magento\Catalog\Api\AttributeSetRepositoryInterface" method="get"/>
- <resources>
- <resource ref="Magento_Catalog::sets"/>
- </resources>
- </route>
- <route url="/V1/products/attribute-sets/:attributeSetId" method="DELETE">
- <service class="Magento\Catalog\Api\AttributeSetRepositoryInterface" method="deleteById"/>
- <resources>
- <resource ref="Magento_Catalog::sets"/>
- </resources>
- </route>
- <route url="/V1/products/attribute-sets" method="POST">
- <service class="Magento\Catalog\Api\AttributeSetManagementInterface" method="create"/>
- <resources>
- <resource ref="Magento_Catalog::sets"/>
- </resources>
- </route>
- <route url="/V1/products/attribute-sets/:attributeSetId" method="PUT">
- <service class="Magento\Catalog\Api\AttributeSetRepositoryInterface" method="save"/>
- <resources>
- <resource ref="Magento_Catalog::sets"/>
- </resources>
- </route>
- <route url="/V1/products/attribute-sets/:attributeSetId/attributes" method="GET">
- <service class="Magento\Catalog\Api\ProductAttributeManagementInterface" method="getAttributes"/>
- <resources>
- <resource ref="Magento_Catalog::sets"/>
- </resources>
- </route>
- <route url="/V1/products/attribute-sets/attributes" method="POST">
- <service class="Magento\Catalog\Api\ProductAttributeManagementInterface" method="assign"/>
- <resources>
- <resource ref="Magento_Catalog::sets"/>
- </resources>
- </route>
- <route url="/V1/products/attribute-sets/:attributeSetId/attributes/:attributeCode" method="DELETE">
- <service class="Magento\Catalog\Api\ProductAttributeManagementInterface" method="unassign"/>
- <resources>
- <resource ref="Magento_Catalog::sets"/>
- </resources>
- </route>
- <route url="/V1/products/attribute-sets/groups/list" method="GET">
- <service class="Magento\Catalog\Api\ProductAttributeGroupRepositoryInterface" method="getList"/>
- <resources>
- <resource ref="Magento_Catalog::sets"/>
- </resources>
- </route>
- <route url="/V1/products/attribute-sets/groups" method="POST">
- <service class="Magento\Catalog\Api\ProductAttributeGroupRepositoryInterface" method="save"/>
- <resources>
- <resource ref="Magento_Catalog::sets"/>
- </resources>
- </route>
- <route url="/V1/products/attribute-sets/:attributeSetId/groups" method="PUT">
- <service class="Magento\Catalog\Api\ProductAttributeGroupRepositoryInterface" method="save"/>
- <resources>
- <resource ref="Magento_Catalog::sets"/>
- </resources>
- </route>
- <route url="/V1/products/attribute-sets/groups/:groupId" method="DELETE">
- <service class="Magento\Catalog\Api\ProductAttributeGroupRepositoryInterface" method="deleteById"/>
- <resources>
- <resource ref="Magento_Catalog::sets"/>
- </resources>
- </route>
- <route url="/V1/products/attributes/:attributeCode/options" method="GET">
- <service class="Magento\Catalog\Api\ProductAttributeOptionManagementInterface" method="getItems"/>
- <resources>
- <resource ref="Magento_Catalog::attributes_attributes" />
- </resources>
- </route>
- <route url="/V1/products/attributes/:attributeCode/options" method="POST">
- <service class="Magento\Catalog\Api\ProductAttributeOptionManagementInterface" method="add" />
- <resources>
- <resource ref="Magento_Catalog::attributes_attributes" />
- </resources>
- </route>
- <route url="/V1/products/attributes/:attributeCode/options/:optionId" method="DELETE">
- <service class="Magento\Catalog\Api\ProductAttributeOptionManagementInterface" method="delete" />
- <resources>
- <resource ref="Magento_Catalog::attributes_attributes" />
- </resources>
- </route>
- <route url="/V1/products/media/types/:attributeSetName" method="GET">
- <service class="Magento\Catalog\Api\ProductMediaAttributeManagementInterface" method="getList"/>
- <resources>
- <resource ref="Magento_Catalog::attributes_attributes"/>
- </resources>
- </route>
- <route url="/V1/products/:sku/media/:entryId" method="GET">
- <service class="Magento\Catalog\Api\ProductAttributeMediaGalleryManagementInterface" method="get"/>
- <resources>
- <resource ref="Magento_Catalog::attributes_attributes"/>
- </resources>
- </route>
- <route url="/V1/products/:sku/media" method="POST">
- <service class="Magento\Catalog\Api\ProductAttributeMediaGalleryManagementInterface" method="create"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/:sku/media/:entryId" method="PUT">
- <service class="Magento\Catalog\Api\ProductAttributeMediaGalleryManagementInterface" method="update"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/:sku/media/:entryId" method="DELETE">
- <service class="Magento\Catalog\Api\ProductAttributeMediaGalleryManagementInterface" method="remove"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/:sku/media" method="GET">
- <service class="Magento\Catalog\Api\ProductAttributeMediaGalleryManagementInterface" method="getList"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <!-- Tier Price -->
- <route url="/V1/products/:sku/group-prices/:customerGroupId/tiers" method="GET">
- <service class="Magento\Catalog\Api\ProductTierPriceManagementInterface" method="getList"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/:sku/group-prices/:customerGroupId/tiers/:qty/price/:price" method="POST">
- <service class="Magento\Catalog\Api\ProductTierPriceManagementInterface" method="add"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/:sku/group-prices/:customerGroupId/tiers/:qty" method="DELETE">
- <service class="Magento\Catalog\Api\ProductTierPriceManagementInterface" method="remove"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/tier-prices-information" method="POST">
- <service class="Magento\Catalog\Api\TierPriceStorageInterface" method="get"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/tier-prices" method="POST">
- <service class="Magento\Catalog\Api\TierPriceStorageInterface" method="update"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/tier-prices" method="PUT">
- <service class="Magento\Catalog\Api\TierPriceStorageInterface" method="replace"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/tier-prices-delete" method="POST">
- <service class="Magento\Catalog\Api\TierPriceStorageInterface" method="delete"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/base-prices-information" method="POST">
- <service class="Magento\Catalog\Api\BasePriceStorageInterface" method="get"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/base-prices" method="POST">
- <service class="Magento\Catalog\Api\BasePriceStorageInterface" method="update"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/cost-information" method="POST">
- <service class="Magento\Catalog\Api\CostStorageInterface" method="get"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/cost" method="POST">
- <service class="Magento\Catalog\Api\CostStorageInterface" method="update"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/cost-delete" method="POST">
- <service class="Magento\Catalog\Api\CostStorageInterface" method="delete"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/special-price-information" method="POST">
- <service class="Magento\Catalog\Api\SpecialPriceStorageInterface" method="get"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/special-price" method="POST">
- <service class="Magento\Catalog\Api\SpecialPriceStorageInterface" method="update"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/special-price-delete" method="POST">
- <service class="Magento\Catalog\Api\SpecialPriceStorageInterface" method="delete"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/categories/:categoryId" method="DELETE">
- <service class="Magento\Catalog\Api\CategoryRepositoryInterface" method="deleteByIdentifier" />
- <resources>
- <resource ref="Magento_Catalog::categories" />
- </resources>
- </route>
- <route url="/V1/categories/:categoryId" method="GET">
- <service class="Magento\Catalog\Api\CategoryRepositoryInterface" method="get" />
- <resources>
- <resource ref="Magento_Catalog::categories" />
- </resources>
- </route>
- <route url="/V1/categories" method="POST">
- <service class="Magento\Catalog\Api\CategoryRepositoryInterface" method="save" />
- <resources>
- <resource ref="Magento_Catalog::categories" />
- </resources>
- </route>
- <route url="/V1/categories" method="GET">
- <service class="Magento\Catalog\Api\CategoryManagementInterface" method="getTree" />
- <resources>
- <resource ref="Magento_Catalog::categories" />
- </resources>
- </route>
- <route url="/V1/categories/:id" method="PUT">
- <service class="Magento\Catalog\Api\CategoryRepositoryInterface" method="save" />
- <resources>
- <resource ref="Magento_Catalog::categories" />
- </resources>
- </route>
- <route url="/V1/categories/:categoryId/move" method="PUT">
- <service class="Magento\Catalog\Api\CategoryManagementInterface" method="move" />
- <resources>
- <resource ref="Magento_Catalog::categories" />
- </resources>
- </route>
- <route url="/V1/categories/list" method="GET">
- <service class="Magento\Catalog\Api\CategoryListInterface" method="getList" />
- <resources>
- <resource ref="Magento_Catalog::categories" />
- </resources>
- </route>
- <!-- Product Custom Options -->
- <route url="/V1/products/options/types" method="GET">
- <service class="Magento\Catalog\Api\ProductCustomOptionTypeListInterface" method="getItems"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/:sku/options" method="GET">
- <service class="Magento\Catalog\Api\ProductCustomOptionRepositoryInterface" method="getList"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/:sku/options/:optionId" method="GET">
- <service class="Magento\Catalog\Api\ProductCustomOptionRepositoryInterface" method="get"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/options" method="POST">
- <service class="Magento\Catalog\Api\ProductCustomOptionRepositoryInterface" method="save"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/options/:optionId" method="PUT">
- <service class="Magento\Catalog\Api\ProductCustomOptionRepositoryInterface" method="save"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/:sku/options/:optionId" method="DELETE">
- <service class="Magento\Catalog\Api\ProductCustomOptionRepositoryInterface" method="deleteByIdentifier"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <!-- Product Links -->
- <route url="/V1/products/links/types" method="GET">
- <service class="Magento\Catalog\Api\ProductLinkTypeListInterface" method="getItems"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/links/:type/attributes" method="GET">
- <service class="Magento\Catalog\Api\ProductLinkTypeListInterface" method="getItemAttributes"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/:sku/links/:type" method="GET">
- <service class="Magento\Catalog\Api\ProductLinkManagementInterface" method="getLinkedItemsByType"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/:sku/links" method="POST">
- <service class="Magento\Catalog\Api\ProductLinkManagementInterface" method="setProductLinks"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/:sku/links/:type/:linkedProductSku" method="DELETE">
- <service class="Magento\Catalog\Api\ProductLinkRepositoryInterface" method="deleteById"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <route url="/V1/products/:sku/links" method="PUT">
- <service class="Magento\Catalog\Api\ProductLinkRepositoryInterface" method="save"/>
- <resources>
- <resource ref="Magento_Catalog::catalog"/>
- </resources>
- </route>
- <!-- Category Product Links -->
- <route url="/V1/categories/:categoryId/products" method="GET">
- <service class="Magento\Catalog\Api\CategoryLinkManagementInterface" method="getAssignedProducts" />
- <resources>
- <resource ref="Magento_Catalog::categories" />
- </resources>
- </route>
- <route url="/V1/categories/:categoryId/products" method="POST">
- <service class="Magento\Catalog\Api\CategoryLinkRepositoryInterface" method="save" />
- <resources>
- <resource ref="Magento_Catalog::categories" />
- </resources>
- </route>
- <route url="/V1/categories/:categoryId/products" method="PUT">
- <service class="Magento\Catalog\Api\CategoryLinkRepositoryInterface" method="save" />
- <resources>
- <resource ref="Magento_Catalog::categories" />
- </resources>
- </route>
- <route url="/V1/categories/:categoryId/products/:sku" method="DELETE">
- <service class="Magento\Catalog\Api\CategoryLinkRepositoryInterface" method="deleteByIds" />
- <resources>
- <resource ref="Magento_Catalog::categories" />
- </resources>
- </route>
- <!-- Product Website Links -->
- <route url="/V1/products/:sku/websites" method="POST">
- <service class="Magento\Catalog\Api\ProductWebsiteLinkRepositoryInterface" method="save" />
- <resources>
- <resource ref="Magento_Catalog::products" />
- </resources>
- </route>
- <route url="/V1/products/:sku/websites" method="PUT">
- <service class="Magento\Catalog\Api\ProductWebsiteLinkRepositoryInterface" method="save" />
- <resources>
- <resource ref="Magento_Catalog::products" />
- </resources>
- </route>
- <route url="/V1/products/:sku/websites/:websiteId" method="DELETE">
- <service class="Magento\Catalog\Api\ProductWebsiteLinkRepositoryInterface" method="deleteById" />
- <resources>
- <resource ref="Magento_Catalog::products" />
- </resources>
- </route>
- <route url="/V1/products-render-info" method="GET">
- <service class="Magento\Catalog\Api\ProductRenderListInterface" method="getList"/>
- <resources>
- <resource ref="anonymous" />
- </resources>
- </route>
- </routes>
|