source-meta.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataOperation.xsd">
  10. <operation name="CreateSource" dataType="source" type="create"
  11. auth="adminOauth" url="/V1/inventory/sources" method="POST">
  12. <contentType>application/json</contentType>
  13. <object dataType="source" key="source">
  14. <field key="source_code">string</field>
  15. <field key="name">string</field>
  16. <field key="email">string</field>
  17. <field key="contact_name">string</field>
  18. <field key="enabled">boolean</field>
  19. <field key="description">string</field>
  20. <field key="latitude">integer</field>
  21. <field key="longitude">integer</field>
  22. <field key="country_id">string</field>
  23. <field key="region_id">integer</field>
  24. <field key="region">string</field>
  25. <field key="city">string</field>
  26. <field key="street">string</field>
  27. <field key="postcode">string</field>
  28. <field key="phone">string</field>
  29. <field key="fax">string</field>
  30. <field key="use_default_carrier_config">boolean</field>
  31. </object>
  32. </operation>
  33. <operation name="DeleteSource" dataType="source" type="delete"
  34. auth="adminOauth" url="/V1/inventory/sources/{source_code}" method="DELETE">
  35. <contentType>application/json</contentType>
  36. </operation>
  37. </operations>