<?xml version="1.0" ?>

<resources xmlns="https://api-platform.com/schema/metadata"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="https://api-platform.com/schema/metadata https://api-platform.com/schema/metadata/metadata-2.0.xsd"
>
    <resource class="%sylius.model.taxon_translation.class%" shortName="TaxonTranslation">
        <attribute name="validation_groups">sylius</attribute>

        <collectionOperations />

        <itemOperations>
            <itemOperation name="admin_get">
                <attribute name="method">GET</attribute>
                <attribute name="path">/admin/taxon-translations/{id}</attribute>
                <attribute name="normalization_context">
                    <attribute name="groups">
                        <attribute>admin:taxon:show</attribute>
                        <attribute>sylius:admin:taxon:show</attribute>
                        <attribute>admin:taxon_translation:show</attribute>
                        <attribute>sylius:admin:taxon_translation:show</attribute>
                    </attribute>
                </attribute>
            </itemOperation>
        </itemOperations>

        <property name="id" identifier="true" writable="false" />
        <property name="name" required="true" />
        <property name="slug" required="true" />
        <property name="description" required="false" />
        <property name="locale" required="true" />
    </resource>
</resources>
