Skip to content

Commit

Permalink
Remove duplicated operations
Browse files Browse the repository at this point in the history
  • Loading branch information
mpysiak committed Oct 24, 2024
1 parent 2a32e43 commit 8225472
Showing 1 changed file with 11 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
</operation>

<operation
name="sylius_api_shop_order_order_item_post"
class="ApiPlatform\Metadata\Post"
uriTemplate="/shop/orders/{tokenValue}/items"
itemUriTemplate="/shop/orders/{tokenValue}"
Expand All @@ -103,16 +104,6 @@
</value>
</values>
</validationContext>
</operation>

<operation
name="sylius_api_shop_order_order_item_post"
class="ApiPlatform\Metadata\Post"
uriTemplate="/shop/orders/{tokenValue}/items"
itemUriTemplate="/shop/orders/{tokenValue}"
messenger="input"
input="Sylius\Bundle\ApiBundle\Command\Cart\AddItemToCart"
>
<denormalizationContext>
<values>
<value name="groups">
Expand All @@ -134,6 +125,7 @@
</operation>

<operation
name="sylius_api_shop_order_put"
class="ApiPlatform\Metadata\Put"
uriTemplate="/shop/orders/{tokenValue}"
messenger="input"
Expand All @@ -148,15 +140,6 @@
</value>
</values>
</validationContext>
</operation>

<operation
name="sylius_api_shop_order_put"
class="ApiPlatform\Metadata\Put"
uriTemplate="/shop/orders/{tokenValue}"
messenger="input"
input="Sylius\Bundle\ApiBundle\Command\Checkout\UpdateCart"
>
<denormalizationContext>
<values>
<value name="groups">
Expand All @@ -178,14 +161,15 @@
</operation>

<operation
name="sylius_api_shop_order_order_item_patch"
class="ApiPlatform\Metadata\Patch"
uriTemplate="/shop/orders/{tokenValue}/items/{orderItemId}"
messenger="input"
input="Sylius\Bundle\ApiBundle\Command\Cart\ChangeItemQuantityInCart"
>
<uriVariables>
<uriVariable parameterName="tokenValue" fromClass="Sylius\Component\Core\Model\Order"/>
<uriVariable parameterName="orderItemId" fromClass="Sylius\Component\Core\Model\OrderItem" fromProperty="order"/>
<uriVariable parameterName="tokenValue" fromClass="%sylius.model.order.class%"/>
<uriVariable parameterName="orderItemId" fromClass="%sylius.model.order_item.class%" fromProperty="order"/>
</uriVariables>
<validationContext>
<values>
Expand All @@ -196,19 +180,6 @@
</value>
</values>
</validationContext>
</operation>

<operation
name="sylius_api_shop_order_order_item_patch"
class="ApiPlatform\Metadata\Patch"
uriTemplate="/shop/orders/{tokenValue}/items/{orderItemId}"
messenger="input"
input="Sylius\Bundle\ApiBundle\Command\Cart\ChangeItemQuantityInCart"
>
<uriVariables>
<uriVariable parameterName="tokenValue" fromClass="%sylius.model.order.class%"/>
<uriVariable parameterName="orderItemId" fromClass="%sylius.model.order_item.class%" fromProperty="order"/>
</uriVariables>
<denormalizationContext>
<values>
<value name="groups">
Expand All @@ -230,14 +201,15 @@
</operation>

<operation
name="sylius_api_shop_order_shipment_patch"
class="ApiPlatform\Metadata\Patch"
uriTemplate="/shop/orders/{tokenValue}/shipments/{shipmentId}"
messenger="input"
input="Sylius\Bundle\ApiBundle\Command\Checkout\ChooseShippingMethod"
>
<uriVariables>
<uriVariable parameterName="tokenValue" fromClass="Sylius\Component\Core\Model\Order"/>
<uriVariable parameterName="shipmentId" fromClass="Sylius\Component\Core\Model\Shipment" fromProperty="order"/>
<uriVariable parameterName="tokenValue" fromClass="%sylius.model.order.class%"/>
<uriVariable parameterName="shipmentId" fromClass="%sylius.model.shipment.class%" fromProperty="order"/>
</uriVariables>
<validationContext>
<values>
Expand All @@ -248,19 +220,6 @@
</value>
</values>
</validationContext>
</operation>

<operation
name="sylius_api_shop_order_shipment_patch"
class="ApiPlatform\Metadata\Patch"
uriTemplate="/shop/orders/{tokenValue}/shipments/{shipmentId}"
messenger="input"
input="Sylius\Bundle\ApiBundle\Command\Checkout\ChooseShippingMethod"
>
<uriVariables>
<uriVariable parameterName="tokenValue" fromClass="%sylius.model.order.class%"/>
<uriVariable parameterName="shipmentId" fromClass="%sylius.model.shipment.class%" fromProperty="order"/>
</uriVariables>
<denormalizationContext>
<values>
<value name="groups">
Expand All @@ -282,14 +241,15 @@
</operation>

<operation
name="sylius_api_shop_order_payment_patch"
class="ApiPlatform\Metadata\Patch"
uriTemplate="/shop/orders/{tokenValue}/payments/{paymentId}"
messenger="input"
input="Sylius\Bundle\ApiBundle\Command\Checkout\ChoosePaymentMethod"
>
<uriVariables>
<uriVariable parameterName="tokenValue" fromClass="Sylius\Component\Core\Model\Order"/>
<uriVariable parameterName="paymentId" fromClass="Sylius\Component\Core\Model\Payment" fromProperty="order"/>
<uriVariable parameterName="tokenValue" fromClass="%sylius.model.order.class%"/>
<uriVariable parameterName="paymentId" fromClass="%sylius.model.payment.class%" fromProperty="order"/>
</uriVariables>
<validationContext>
<values>
Expand All @@ -300,19 +260,6 @@
</value>
</values>
</validationContext>
</operation>

<operation
name="sylius_api_shop_order_payment_patch"
class="ApiPlatform\Metadata\Patch"
uriTemplate="/shop/orders/{tokenValue}/payments/{paymentId}"
messenger="input"
input="Sylius\Bundle\ApiBundle\Command\Checkout\ChoosePaymentMethod"
>
<uriVariables>
<uriVariable parameterName="tokenValue" fromClass="%sylius.model.order.class%"/>
<uriVariable parameterName="paymentId" fromClass="%sylius.model.payment.class%" fromProperty="order"/>
</uriVariables>
<denormalizationContext>
<values>
<value name="groups">
Expand Down

0 comments on commit 8225472

Please sign in to comment.