mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[API] Add product option filtering
This commit is contained in:
parent
915068391e
commit
c243ed53c2
2 changed files with 12 additions and 0 deletions
|
|
@ -34,6 +34,10 @@
|
|||
</value>
|
||||
</values>
|
||||
</normalizationContext>
|
||||
|
||||
<filters>
|
||||
<filter>sylius_api.search_filter.product_option</filter>
|
||||
</filters>
|
||||
</operation>
|
||||
|
||||
<operation class="ApiPlatform\Metadata\Post" uriTemplate="/admin/product-options">
|
||||
|
|
|
|||
|
|
@ -426,5 +426,13 @@
|
|||
</argument>
|
||||
<tag name="api_platform.filter" />
|
||||
</service>
|
||||
|
||||
<service id="sylius_api.search_filter.product_option" parent="api_platform.doctrine.orm.search_filter" public="true">
|
||||
<argument type="collection">
|
||||
<argument key="code">partial</argument>
|
||||
<argument key="translations.name">partial</argument>
|
||||
</argument>
|
||||
<tag name="api_platform.filter" />
|
||||
</service>
|
||||
</services>
|
||||
</container>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue