Question

I have this code defined on my shop-meta.xml:

<?xml version="1.0" encoding="UTF-8"?>
<operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataOperation.xsd">
    <operation name="CreateShops" dataType="shops" type="create" auth="anonymous" url="/V1/shop" method="POST">
        <contentType>application/json</contentType>
        <object dataType="shops" key="shops">
            <array key="shops">
                <value>Shop</value>
            </array>
        </object>
        <object dataType="Shop" key="Shop">
            <field key="shop_id">integer</field>
            <field key="shop_name">string</field>
            <array key="services">
                <value>Service</value>
            </array>
        </object>
        <object dataType="Service" key="Service">
            <field key="service_id">integer</field>    
            <field key="service">string</field>
            <field key="service_name">string</field>
            <field key="waiting_time_seconds">integer</field>
            <field key="tickets_in_queue">integer</field>
            <field key="current_ticket">string</field>
        </object>
    </operation>
</operations>

How can I create an entity of the object shops in my ShopData.xml?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top