Some improvements. Added filter search and refactor

feature/integration-ogboot
Manuel Aranda Rosales 2024-09-02 10:09:36 +02:00
parent ccb317fb15
commit d70d2cf3f0
1 changed files with 24 additions and 0 deletions

View File

@ -18,6 +18,18 @@ services:
$orderParameterName: 'order' $orderParameterName: 'order'
tags: [ 'api_platform.filter' ] tags: [ 'api_platform.filter' ]
api_platform.filter.og_live.order:
parent: 'api_platform.doctrine.orm.order_filter'
arguments:
$properties: { 'id': ~, 'name': ~ }
$orderParameterName: 'order'
tags: [ 'api_platform.filter' ]
api_platform.filter.og_live.search:
parent: 'api_platform.doctrine.orm.search_filter'
arguments: [ { 'id': 'exact', 'name': 'partial', } ]
tags: [ 'api_platform.filter' ]
api_platform.filter.hardware.search: api_platform.filter.hardware.search:
parent: 'api_platform.doctrine.orm.search_filter' parent: 'api_platform.doctrine.orm.search_filter'
arguments: [ { 'id': 'exact', 'name': 'partial' } ] arguments: [ { 'id': 'exact', 'name': 'partial' } ]
@ -59,6 +71,18 @@ services:
arguments: [ { 'id': 'exact', 'usage': 'exact', 'diskNumber': 'exact' } ] arguments: [ { 'id': 'exact', 'usage': 'exact', 'diskNumber': 'exact' } ]
tags: [ 'api_platform.filter' ] tags: [ 'api_platform.filter' ]
api_platform.filter.pxe_template.order:
parent: 'api_platform.doctrine.orm.order_filter'
arguments:
$properties: { 'id': ~, 'name': ~ }
$orderParameterName: 'order'
tags: [ 'api_platform.filter' ]
api_platform.filter.pxe_template.search:
parent: 'api_platform.doctrine.orm.search_filter'
arguments: [ { 'id': 'exact', 'name': 'partial', } ]
tags: [ 'api_platform.filter' ]
api_platform.filter.user.order: api_platform.filter.user.order:
parent: 'api_platform.doctrine.orm.order_filter' parent: 'api_platform.doctrine.orm.order_filter'
arguments: arguments: