<commit_before><?xml version="1.0" ?>

<!--

 This file is part of the Sylius package.

 (c) <NAME>

 For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.

-->

<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.order.class%" shortName="Order">
        <attribute name="normalization_context">
            <attribute name="groups">
                <attribute>order:read</attribute>
            </attribute>
        </attribute>

        <attribute name="validation_groups">sylius</attribute>

        <collectionOperations>
            <collectionOperation name="admin_get">
                <attribute name="method">GET</attribute>
                <attribute name="path">admin/orders</attribute>
            </collectionOperation>

            <collectionOperation name="shop_post">
                <attribute name="method">POST</attribute>
                <attribute name="path">/admin/orders</attribute>
                <attribute name="messenger">input</attribute>
                <attribute name="input">Sylius\Bundle\ApiBundle\Command\Cart\PickupCart</attribute>
                <attribute name="denormalization_context">
                    <attribute name="groups">order:create</attribute>
                </attribute><commit_msg>bug #11831 [API] fix route for pickup cart (AdamKasp)<commit_after><?xml version="1.0" ?>

<!--

 This file is part of the Sylius package.

 (c) <NAME>

 For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.

-->

<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.order.class%" shortName="Order">
        <attribute name="normalization_context">
            <attribute name="groups">
                <attribute>order:read</attribute>
            </attribute>
        </attribute>

        <attribute name="validation_groups">sylius</attribute>

        <collectionOperations>
            <collectionOperation name="admin_get">
                <attribute name="method">GET</attribute>
                <attribute name="path">admin/orders</attribute>
            </collectionOperation>

            <collectionOperation name="shop_post">
                <attribute name="method">POST</attribute>
                <attribute name="path">/shop/orders</attribute>
                <attribute name="messenger">input</attribute>
                <attribute name="input">Sylius\Bundle\ApiBundle\Command\Cart\PickupCart</attribute>
                <attribute name="denormalization_context">
                    <attribute name="groups">order:create</attribute>
                </attribute>
{'fraction_non_alphanumeric': 0.13046251993620414, 'fraction_numerical': 0.00733652312599681, 'mean_word_length': 2.6170703575547867, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 2, '>': 69, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1919113', 'n_tokens_mistral': 835, 'n_tokens_neox': 784, 'n_words': 149}