File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1313
1414namespace Silverback \ApiComponentsBundle \Entity \Core ;
1515
16+ use ApiPlatform \Doctrine \Orm \Filter \OrderFilter ;
17+ use ApiPlatform \Metadata \ApiFilter ;
1618use ApiPlatform \Metadata \ApiResource ;
1719use ApiPlatform \Metadata \Delete ;
1820use ApiPlatform \Metadata \Get ;
2628use Silverback \ApiComponentsBundle \DataProvider \StateProvider \RouteStateProvider ;
2729use Silverback \ApiComponentsBundle \Entity \Utility \IdTrait ;
2830use Silverback \ApiComponentsBundle \Entity \Utility \TimestampedTrait ;
31+ use Silverback \ApiComponentsBundle \Filter \OrSearchFilter ;
2932use Symfony \Bridge \Doctrine \Validator \Constraints \UniqueEntity ;
3033use Symfony \Component \Serializer \Annotation \Groups ;
3134use Symfony \Component \Validator \Constraints as Assert ;
5558 mercure: true ,
5659 provider: RouteStateProvider::class
5760)]
61+ #[ApiFilter(OrderFilter::class, properties: ['path ' ], arguments: ['orderParameterName ' => 'order ' ])]
62+ #[ApiFilter(OrSearchFilter::class, properties: ['path ' => 'ipartial ' ])]
5863#[Post]
5964#[GetCollection]
6065#[Delete(requirements: REQUIREMENTS , security: SECURITY )]
You can’t perform that action at this time.
0 commit comments