Remove legacy configuration

This commit is contained in:
Michał Pysiak 2024-07-25 08:19:35 +02:00
parent 0a7ac37f57
commit 86cf4c8a44
No known key found for this signature in database
GPG key ID: 9C1F2D0F99830187

View file

@ -1,64 +0,0 @@
<?xml version="1.0" ?>
<!--
This file is part of the Sylius package.
(c) Sylius Sp. z o.o.
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\Bundle\ApiBundle\Command\Account\ResetPassword" shortName="Customer">
<attribute name="validation_groups">sylius</attribute>
<attribute name="messenger">input</attribute>
<collectionOperations>
<collectionOperation name="shop_request_reset_password">
<attribute name="method">POST</attribute>
<attribute name="path">/shop/customers/reset-password</attribute>
<attribute name="input">Sylius\Bundle\ApiBundle\Command\Account\RequestResetPasswordToken</attribute>
<attribute name="output">false</attribute>
<attribute name="status">202</attribute>
<attribute name="denormalization_context">
<attribute name="groups">
<attribute>shop:reset_password:create</attribute>
<attribute>sylius:shop:reset_password:create</attribute>
</attribute>
</attribute>
<attribute name="openapi_context">
<attribute name="summary">Requests password reset.</attribute>
</attribute>
</collectionOperation>
</collectionOperations>
<itemOperations>
<itemOperation name="shop_update_reset_password">
<attribute name="method">PATCH</attribute>
<attribute name="path">/shop/customers/reset-password/{token}</attribute>
<attribute name="input">Sylius\Bundle\ApiBundle\Command\Account\ResetPassword</attribute>
<attribute name="output">false</attribute>
<attribute name="status">202</attribute>
<attribute name="denormalization_context">
<attribute name="groups">
<attribute>shop:reset_password:update</attribute>
<attribute>sylius:shop:reset_password:update</attribute>
</attribute>
</attribute>
<attribute name="openapi_context">
<attribute name="summary">Resets password.</attribute>
</attribute>
</itemOperation>
</itemOperations>
<property name="token" identifier="true" />
<property name="newPassword" required="true" />
<property name="confirmNewPassword" required="true" />
</resource>
</resources>