| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace App\ApiResources\Organization;
- use ApiPlatform\Metadata\ApiProperty;
- use ApiPlatform\Metadata\ApiResource;
- use ApiPlatform\Metadata\Post;
- use App\State\Processor\Export\LicenceCmf\ExportRequestProcessor;
- #[ApiResource(
- operations: [
- new Post(
- uriTemplate: '/internal/organization/create',
- security: 'false'
- ),
- ],
- processor: OrganizationCreationRequestProcessor::class
- )]
- class OrganizationCreationRequest
- {
- /**
- * Id 'bidon' ajouté par défaut pour permettre la construction
- * de l'IRI par api platform.
- */
- #[ApiProperty(identifier: true)]
- protected int $id = 0;
- }
|