mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Minor fixes
This commit is contained in:
parent
3802da5b0c
commit
ca34aff2a9
3 changed files with 27 additions and 27 deletions
|
|
@ -17,16 +17,6 @@
|
|||
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0 https://api-platform.com/schema/metadata/resources-3.0.xsd"
|
||||
>
|
||||
<resource class="Sylius\Component\Core\Model\Customer">
|
||||
<validationContext>
|
||||
<values>
|
||||
<value name="groups">
|
||||
<values>
|
||||
<value>sylius</value>
|
||||
</values>
|
||||
</value>
|
||||
</values>
|
||||
</validationContext>
|
||||
|
||||
<operations>
|
||||
|
||||
<!-- Admin operations-->
|
||||
|
|
@ -42,7 +32,7 @@
|
|||
</values>
|
||||
</normalizationContext>
|
||||
<filters>
|
||||
<filter>sylius.api.customer_group_filter</filter>
|
||||
<filter>sylius_api.filter.customer_group</filter>
|
||||
</filters>
|
||||
</operation>
|
||||
|
||||
|
|
@ -145,6 +135,18 @@
|
|||
|
||||
<!-- Shop operations-->
|
||||
|
||||
<operation class="ApiPlatform\Metadata\Get" uriTemplate="/shop/customers/{id}">
|
||||
<normalizationContext>
|
||||
<values>
|
||||
<value name="groups">
|
||||
<values>
|
||||
<value>sylius:shop:customer:show</value>
|
||||
</values>
|
||||
</value>
|
||||
</values>
|
||||
</normalizationContext>
|
||||
</operation>
|
||||
|
||||
<operation
|
||||
class="ApiPlatform\Metadata\Post"
|
||||
uriTemplate="/shop/customers"
|
||||
|
|
@ -161,6 +163,15 @@
|
|||
</value>
|
||||
</values>
|
||||
</denormalizationContext>
|
||||
<validationContext>
|
||||
<values>
|
||||
<value name="groups">
|
||||
<values>
|
||||
<value>sylius</value>
|
||||
</values>
|
||||
</value>
|
||||
</values>
|
||||
</validationContext>
|
||||
<openapiContext>
|
||||
<values>
|
||||
<value name="summary">Registers a new shop user</value>
|
||||
|
|
@ -198,17 +209,6 @@
|
|||
</normalizationContext>
|
||||
</operation>
|
||||
|
||||
<operation class="ApiPlatform\Metadata\Get" uriTemplate="/shop/customers/{id}">
|
||||
<normalizationContext>
|
||||
<values>
|
||||
<value name="groups">
|
||||
<values>
|
||||
<value>sylius:shop:customer:show</value>
|
||||
</values>
|
||||
</value>
|
||||
</values>
|
||||
</normalizationContext>
|
||||
</operation>
|
||||
</operations>
|
||||
</resource>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -300,7 +300,7 @@
|
|||
<!-- <tag name="api_platform.filter" />-->
|
||||
<!-- </service>-->
|
||||
|
||||
<service id="sylius.api.customer_group_filter" parent="api_platform.doctrine.orm.search_filter" public="true">
|
||||
<service id="sylius_api.filter.customer_group" parent="api_platform.doctrine.orm.search_filter" public="true">
|
||||
<argument type="collection">
|
||||
<argument key="group.name">exact</argument>
|
||||
</argument>
|
||||
|
|
|
|||
|
|
@ -25,9 +25,9 @@
|
|||
<argument type="service" id="sylius.customer_statistics_provider" />
|
||||
</service>
|
||||
|
||||
<service id="Sylius\Bundle\ApiBundle\QueryHandler\GetStatisticsHandler">
|
||||
<argument type="service" id="Sylius\Component\Core\Statistics\Provider\StatisticsProviderInterface" />
|
||||
<argument type="service" id="sylius.repository.channel" />
|
||||
</service>
|
||||
<!-- <service id="Sylius\Bundle\ApiBundle\QueryHandler\GetStatisticsHandler">-->
|
||||
<!-- <argument type="service" id="Sylius\Component\Core\Statistics\Provider\StatisticsProviderInterface" />-->
|
||||
<!-- <argument type="service" id="sylius.repository.channel" />-->
|
||||
<!-- </service>-->
|
||||
</services>
|
||||
</container>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue