webapi.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. <!-- StoreView -->
  11. <route url="/V1/store/storeViews" method="GET">
  12. <service class="Magento\Store\Api\StoreRepositoryInterface" method="getList"/>
  13. <resources>
  14. <resource ref="Magento_Backend::store"/>
  15. </resources>
  16. </route>
  17. <!-- Store Groups-->
  18. <route url="/V1/store/storeGroups" method="GET">
  19. <service class="Magento\Store\Api\GroupRepositoryInterface" method="getList"/>
  20. <resources>
  21. <resource ref="Magento_Backend::store"/>
  22. </resources>
  23. </route>
  24. <!-- Website -->
  25. <route url="/V1/store/websites" method="GET">
  26. <service class="Magento\Store\Api\WebsiteRepositoryInterface" method="getList"/>
  27. <resources>
  28. <resource ref="Magento_Backend::store"/>
  29. </resources>
  30. </route>
  31. <!-- Store Config -->
  32. <route url="/V1/store/storeConfigs" method="GET">
  33. <service class="Magento\Store\Api\StoreConfigManagerInterface" method="getStoreConfigs"/>
  34. <resources>
  35. <resource ref="Magento_Backend::store"/>
  36. </resources>
  37. </route>
  38. </routes>