|
|
|
@@ -9,6 +9,7 @@ namespace App\ApiResource; |
|
|
|
|
|
|
|
|
|
|
|
use ApiPlatform\Doctrine\Orm\Filter\OrderFilter; |
|
|
|
use ApiPlatform\Doctrine\Orm\Filter\SearchFilter; |
|
|
|
use ApiPlatform\Doctrine\Orm\State\Options; |
|
|
|
use ApiPlatform\Metadata\ApiFilter; |
|
|
|
use ApiPlatform\Metadata\ApiProperty; |
|
|
|
@@ -50,6 +51,7 @@ use Symfony\Component\Validator\Constraints\NotBlank; |
|
|
|
stateOptions: new Options(entityClass: Partner::class) |
|
|
|
)] |
|
|
|
#[ApiFilter(OrderFilter::class, properties: ['name'], arguments: ['orderParameterName' => 'order'])] |
|
|
|
#[ApiFilter(SearchFilter::class, properties: ['type' => 'exact'])] |
|
|
|
class PartnerApi |
|
|
|
{ |
|
|
|
#[ApiProperty(readable: false, writable: false, identifier: true)] |
|
|
|
|