webapi.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  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. <!-- Managing Delivery Option Selection in Checkout -->
  10. <route url="/V1/carts/mine/delivery-option" method="POST">
  11. <service class="Temando\Shipping\Api\Quote\CartDeliveryOptionManagementInterface" method="save"/>
  12. <resources>
  13. <resource ref="self" />
  14. </resources>
  15. <data>
  16. <parameter name="cartId" force="true">%cart_id%</parameter>
  17. </data>
  18. </route>
  19. <route url="/V1/guest-carts/:cartId/delivery-option" method="POST">
  20. <service class="Temando\Shipping\Api\Quote\GuestCartDeliveryOptionManagementInterface" method="save"/>
  21. <resources>
  22. <resource ref="anonymous"/>
  23. </resources>
  24. </route>
  25. <!-- Managing Temando RMA Return Shipments -->
  26. <route url="/V1/temando/rma/:rmaId/shipments" method="PUT">
  27. <service class="Temando\Shipping\Api\Rma\RmaShipmentManagementInterface" method="assignShipmentIds"/>
  28. <resources>
  29. <resource ref="Magento_Rma::magento_rma" />
  30. </resources>
  31. </route>
  32. <!-- Managing Search for Collection Points (Guest Checkout) -->
  33. <route method="PUT" url="/V1/guest-carts/:cartId/collection-point/search-request">
  34. <service class="Temando\Shipping\Api\Checkout\GuestCartCollectionPointManagementInterface" method="saveSearchRequest"/>
  35. <resources>
  36. <resource ref="anonymous"/>
  37. </resources>
  38. </route>
  39. <route method="DELETE" url="/V1/guest-carts/:cartId/collection-point/search-request">
  40. <service class="Temando\Shipping\Api\Checkout\GuestCartCollectionPointManagementInterface" method="deleteSearchRequest"/>
  41. <resources>
  42. <resource ref="anonymous"/>
  43. </resources>
  44. </route>
  45. <route method="GET" url="/V1/guest-carts/:cartId/collection-point/search-result">
  46. <service class="Temando\Shipping\Api\Checkout\GuestCartCollectionPointManagementInterface" method="getCollectionPoints"/>
  47. <resources>
  48. <resource ref="anonymous"/>
  49. </resources>
  50. </route>
  51. <route method="POST" url="/V1/guest-carts/:cartId/checkout-collection-point/select">
  52. <service class="Temando\Shipping\Api\Checkout\GuestCartCollectionPointManagementInterface" method="selectCollectionPoint"/>
  53. <resources>
  54. <resource ref="anonymous"/>
  55. </resources>
  56. </route>
  57. <!-- @deprecated -->
  58. <route method="POST" url="/V1/guest-carts/:cartId/collection-point/select">
  59. <service class="Temando\Shipping\Api\Delivery\GuestCartCollectionPointManagementInterface" method="selectCollectionPoint"/>
  60. <resources>
  61. <resource ref="anonymous"/>
  62. </resources>
  63. </route>
  64. <!-- Managing Search for Collection Points (Logged-In Checkout) -->
  65. <route method="PUT" url="/V1/carts/mine/collection-point/search-request">
  66. <service class="Temando\Shipping\Api\Checkout\CartCollectionPointManagementInterface" method="saveSearchRequest"/>
  67. <resources>
  68. <resource ref="self"/>
  69. </resources>
  70. <data>
  71. <parameter name="cartId" force="true">%cart_id%</parameter>
  72. </data>
  73. </route>
  74. <route method="DELETE" url="/V1/carts/mine/collection-point/search-request">
  75. <service class="Temando\Shipping\Api\Checkout\CartCollectionPointManagementInterface" method="deleteSearchRequest"/>
  76. <resources>
  77. <resource ref="self"/>
  78. </resources>
  79. <data>
  80. <parameter name="cartId" force="true">%cart_id%</parameter>
  81. </data>
  82. </route>
  83. <route method="GET" url="/V1/carts/mine/collection-point/search-result">
  84. <service class="Temando\Shipping\Api\Checkout\CartCollectionPointManagementInterface" method="getCollectionPoints"/>
  85. <resources>
  86. <resource ref="self"/>
  87. </resources>
  88. <data>
  89. <parameter name="cartId" force="true">%cart_id%</parameter>
  90. </data>
  91. </route>
  92. <route method="POST" url="/V1/carts/mine/checkout-collection-point/select">
  93. <service class="Temando\Shipping\Api\Checkout\CartCollectionPointManagementInterface" method="selectCollectionPoint"/>
  94. <resources>
  95. <resource ref="self"/>
  96. </resources>
  97. <data>
  98. <parameter name="cartId" force="true">%cart_id%</parameter>
  99. </data>
  100. </route>
  101. <!-- @deprecated -->
  102. <route method="POST" url="/V1/carts/mine/collection-point/select">
  103. <service class="Temando\Shipping\Api\Delivery\CartCollectionPointManagementInterface" method="selectCollectionPoint"/>
  104. <resources>
  105. <resource ref="self"/>
  106. </resources>
  107. <data>
  108. <parameter name="cartId" force="true">%cart_id%</parameter>
  109. </data>
  110. </route>
  111. <!-- Managing Service Fields in Checkout (guest checkout)-->
  112. <route url="/V1/guest-carts/:cartId/checkout-fields" method="POST">
  113. <service class="Temando\Shipping\Api\Quote\GuestCartCheckoutFieldManagementInterface" method="saveCheckoutFields"/>
  114. <resources>
  115. <resource ref="anonymous" />
  116. </resources>
  117. </route>
  118. <!-- Managing Service Fields in Checkout (Logged in customer) -->
  119. <route url="/V1/carts/mine/checkout-fields" method="POST">
  120. <service class="Temando\Shipping\Api\Quote\CartCheckoutFieldManagementInterface" method="saveCheckoutFields"/>
  121. <resources>
  122. <resource ref="self"/>
  123. </resources>
  124. <data>
  125. <parameter name="cartId" force="true">%cart_id%</parameter>
  126. </data>
  127. </route>
  128. <!-- Managing Pickup Locations in Checkout -->
  129. <route method="POST" url="/V1/guest-carts/:cartId/checkout-pickup-location/select">
  130. <service class="Temando\Shipping\Api\Checkout\GuestCartPickupLocationManagementInterface" method="selectPickupLocation"/>
  131. <resources>
  132. <resource ref="anonymous"/>
  133. </resources>
  134. </route>
  135. <!-- @deprecated -->
  136. <route method="POST" url="/V1/guest-carts/:cartId/pickup-location/select">
  137. <service class="Temando\Shipping\Api\Delivery\GuestCartPickupLocationManagementInterface" method="selectPickupLocation"/>
  138. <resources>
  139. <resource ref="anonymous"/>
  140. </resources>
  141. </route>
  142. <route method="POST" url="/V1/carts/mine/checkout-pickup-location/select">
  143. <service class="Temando\Shipping\Api\Checkout\CartPickupLocationManagementInterface" method="selectPickupLocation"/>
  144. <resources>
  145. <resource ref="self"/>
  146. </resources>
  147. <data>
  148. <parameter name="cartId" force="true">%cart_id%</parameter>
  149. </data>
  150. </route>
  151. <!-- @deprecated -->
  152. <route method="POST" url="/V1/carts/mine/pickup-location/select">
  153. <service class="Temando\Shipping\Api\Delivery\CartPickupLocationManagementInterface" method="selectPickupLocation"/>
  154. <resources>
  155. <resource ref="self"/>
  156. </resources>
  157. <data>
  158. <parameter name="cartId" force="true">%cart_id%</parameter>
  159. </data>
  160. </route>
  161. </routes>