webapi.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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/taxRates" method="POST">
  11. <service class="Magento\Tax\Api\TaxRateRepositoryInterface" method="save"/>
  12. <resources>
  13. <resource ref="Magento_Tax::manage_tax"/>
  14. </resources>
  15. </route>
  16. <route url="/V1/taxRates/:rateId" method="GET">
  17. <service class="Magento\Tax\Api\TaxRateRepositoryInterface" method="get"/>
  18. <resources>
  19. <resource ref="Magento_Tax::manage_tax"/>
  20. </resources>
  21. </route>
  22. <route url="/V1/taxRates" method="PUT">
  23. <service class="Magento\Tax\Api\TaxRateRepositoryInterface" method="save"/>
  24. <resources>
  25. <resource ref="Magento_Tax::manage_tax"/>
  26. </resources>
  27. </route>
  28. <route url="/V1/taxRates/:rateId" method="DELETE">
  29. <service class="Magento\Tax\Api\TaxRateRepositoryInterface" method="deleteById"/>
  30. <resources>
  31. <resource ref="Magento_Tax::manage_tax"/>
  32. </resources>
  33. </route>
  34. <route url="/V1/taxRates/search" method="GET">
  35. <service class="Magento\Tax\Api\TaxRateRepositoryInterface" method="getList"/>
  36. <resources>
  37. <resource ref="Magento_Tax::manage_tax"/>
  38. </resources>
  39. </route>
  40. <route url="/V1/taxRules" method="POST">
  41. <service class="Magento\Tax\Api\TaxRuleRepositoryInterface" method="save"/>
  42. <resources>
  43. <resource ref="Magento_Tax::manage_tax"/>
  44. </resources>
  45. </route>
  46. <route url="/V1/taxRules" method="PUT">
  47. <service class="Magento\Tax\Api\TaxRuleRepositoryInterface" method="save"/>
  48. <resources>
  49. <resource ref="Magento_Tax::manage_tax"/>
  50. </resources>
  51. </route>
  52. <route url="/V1/taxRules/:ruleId" method="DELETE">
  53. <service class="Magento\Tax\Api\TaxRuleRepositoryInterface" method="deleteById"/>
  54. <resources>
  55. <resource ref="Magento_Tax::manage_tax"/>
  56. </resources>
  57. </route>
  58. <route url="/V1/taxRules/:ruleId" method="GET">
  59. <service class="Magento\Tax\Api\TaxRuleRepositoryInterface" method="get"/>
  60. <resources>
  61. <resource ref="Magento_Tax::manage_tax"/>
  62. </resources>
  63. </route>
  64. <route url="/V1/taxRules/search" method="GET">
  65. <service class="Magento\Tax\Api\TaxRuleRepositoryInterface" method="getList"/>
  66. <resources>
  67. <resource ref="Magento_Tax::manage_tax"/>
  68. </resources>
  69. </route>
  70. <route url="/V1/taxClasses" method="POST">
  71. <service class="Magento\Tax\Api\TaxClassRepositoryInterface" method="save"/>
  72. <resources>
  73. <resource ref="Magento_Tax::manage_tax"/>
  74. </resources>
  75. </route>
  76. <route url="/V1/taxClasses/:taxClassId" method="GET">
  77. <service class="Magento\Tax\Api\TaxClassRepositoryInterface" method="get"/>
  78. <resources>
  79. <resource ref="Magento_Tax::manage_tax"/>
  80. </resources>
  81. </route>
  82. <route url="/V1/taxClasses/:classId" method="PUT">
  83. <service class="Magento\Tax\Api\TaxClassRepositoryInterface" method="save"/>
  84. <resources>
  85. <resource ref="Magento_Tax::manage_tax"/>
  86. </resources>
  87. </route>
  88. <route url="/V1/taxClasses/:taxClassId" method="DELETE">
  89. <service class="Magento\Tax\Api\TaxClassRepositoryInterface" method="deleteById"/>
  90. <resources>
  91. <resource ref="Magento_Tax::manage_tax"/>
  92. </resources>
  93. </route>
  94. <route url="/V1/taxClasses/search" method="GET">
  95. <service class="Magento\Tax\Api\TaxClassRepositoryInterface" method="getList"/>
  96. <resources>
  97. <resource ref="Magento_Tax::manage_tax"/>
  98. </resources>
  99. </route>
  100. </routes>