webapi.xml 1.2 KB

1234567891011121314151617181920212223242526272829
  1. <!--
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. -->
  7. <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  8. xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
  9. <route url="/V1/inventory/get-distance-provider-code" method="GET">
  10. <service class="Magento\InventoryDistanceBasedSourceSelectionApi\Api\GetDistanceProviderCodeInterface" method="execute"/>
  11. <resources>
  12. <resource ref="Magento_InventoryApi::source"/>
  13. </resources>
  14. </route>
  15. <route url="/V1/inventory/get-distance" method="GET">
  16. <service class="Magento\InventoryDistanceBasedSourceSelectionApi\Api\GetDistanceInterface" method="execute"/>
  17. <resources>
  18. <resource ref="Magento_InventoryApi::source"/>
  19. </resources>
  20. </route>
  21. <route url="/V1/inventory/get-latlng-from-address" method="GET">
  22. <service class="Magento\InventoryDistanceBasedSourceSelectionApi\Api\GetLatLngFromAddressInterface" method="execute"/>
  23. <resources>
  24. <resource ref="Magento_InventoryApi::source"/>
  25. </resources>
  26. </route>
  27. </routes>