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