|
|
@@ -7,6 +7,7 @@ |
|
|
|
|
|
|
|
|
namespace App\ApiResource; |
|
|
namespace App\ApiResource; |
|
|
|
|
|
|
|
|
|
|
|
use ApiPlatform\Doctrine\Orm\Filter\ExistsFilter; |
|
|
use ApiPlatform\Doctrine\Orm\Filter\SearchFilter; |
|
|
use ApiPlatform\Doctrine\Orm\Filter\SearchFilter; |
|
|
use ApiPlatform\Doctrine\Orm\State\Options; |
|
|
use ApiPlatform\Doctrine\Orm\State\Options; |
|
|
use ApiPlatform\Metadata\ApiFilter; |
|
|
use ApiPlatform\Metadata\ApiFilter; |
|
|
@@ -54,6 +55,7 @@ use Symfony\Component\Validator\Constraints\NotBlank; |
|
|
stateOptions: new Options(entityClass: Posting::class) |
|
|
stateOptions: new Options(entityClass: Posting::class) |
|
|
)] |
|
|
)] |
|
|
#[ApiFilter(SearchFilter::class, properties: ['partner' => 'exact', 'contact' => 'exact'])] |
|
|
#[ApiFilter(SearchFilter::class, properties: ['partner' => 'exact', 'contact' => 'exact'])] |
|
|
|
|
|
#[ApiFilter(ExistsFilter::class, properties: ['contact', 'sale'])] |
|
|
class PostingApi implements OwnerInterface |
|
|
class PostingApi implements OwnerInterface |
|
|
{ |
|
|
{ |
|
|
#[ApiProperty(readable: false, writable: false, identifier: true)] |
|
|
#[ApiProperty(readable: false, writable: false, identifier: true)] |
|
|
|