webapi.xml 829 B

12345678910111213141516171819202122
  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/integration/admin/token" method="POST">
  11. <service class="Magento\Integration\Api\AdminTokenServiceInterface" method="createAdminAccessToken"/>
  12. <resources>
  13. <resource ref="anonymous"/>
  14. </resources>
  15. </route>
  16. <route url="/V1/integration/customer/token" method="POST">
  17. <service class="Magento\Integration\Api\CustomerTokenServiceInterface" method="createCustomerAccessToken"/>
  18. <resources>
  19. <resource ref="anonymous"/>
  20. </resources>
  21. </route>
  22. </routes>