mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[API] Sorting user orders by order number
I did sorting user orders by order number.
This commit is contained in:
parent
8a30c98ea5
commit
76d51022f3
2 changed files with 10 additions and 0 deletions
|
|
@ -22,6 +22,9 @@
|
|||
<collectionOperation name="admin_get">
|
||||
<attribute name="method">GET</attribute>
|
||||
<attribute name="path">admin/orders</attribute>
|
||||
<attribute name="filters">
|
||||
<attribute>sylius.api.order_number_filter</attribute>
|
||||
</attribute>
|
||||
<attribute name="normalization_context">
|
||||
<attribute name="groups">admin:order:read</attribute>
|
||||
</attribute>
|
||||
|
|
|
|||
|
|
@ -210,5 +210,12 @@
|
|||
</argument>
|
||||
<tag name="api_platform.filter" />
|
||||
</service>
|
||||
|
||||
<service id="sylius.api.order_number_filter" parent="api_platform.doctrine.orm.order_filter" public="true">
|
||||
<argument type="collection">
|
||||
<argument key="number" />
|
||||
</argument>
|
||||
<tag name="api_platform.filter" />
|
||||
</service>
|
||||
</services>
|
||||
</container>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue