webapi.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
  10. <route url="/V1/eav/attribute-sets/list" method="GET">
  11. <service class="Magento\Eav\Api\AttributeSetRepositoryInterface" method="getList"/>
  12. <resources>
  13. <resource ref="Magento_Catalog::sets"/>
  14. </resources>
  15. </route>
  16. <route url="/V1/eav/attribute-sets/:attributeSetId" method="GET">
  17. <service class="Magento\Eav\Api\AttributeSetRepositoryInterface" method="get"/>
  18. <resources>
  19. <resource ref="Magento_Catalog::sets"/>
  20. </resources>
  21. </route>
  22. <route url="/V1/eav/attribute-sets/:attributeSetId" method="DELETE">
  23. <service class="Magento\Eav\Api\AttributeSetRepositoryInterface" method="deleteById"/>
  24. <resources>
  25. <resource ref="Magento_Catalog::sets"/>
  26. </resources>
  27. </route>
  28. <route url="/V1/eav/attribute-sets" method="POST">
  29. <service class="Magento\Eav\Api\AttributeSetManagementInterface" method="create"/>
  30. <resources>
  31. <resource ref="Magento_Catalog::sets"/>
  32. </resources>
  33. </route>
  34. <route url="/V1/eav/attribute-sets/:attributeSetId" method="PUT">
  35. <service class="Magento\Eav\Api\AttributeSetRepositoryInterface" method="save"/>
  36. <resources>
  37. <resource ref="Magento_Catalog::sets"/>
  38. </resources>
  39. </route>
  40. </routes>