OrganizationCreationRequest.php 665 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\ApiResources\Organization;
  3. use ApiPlatform\Metadata\ApiProperty;
  4. use ApiPlatform\Metadata\ApiResource;
  5. use ApiPlatform\Metadata\Post;
  6. use App\State\Processor\Export\LicenceCmf\ExportRequestProcessor;
  7. #[ApiResource(
  8. operations: [
  9. new Post(
  10. uriTemplate: '/internal/organization/create',
  11. security: 'false'
  12. ),
  13. ],
  14. processor: OrganizationCreationRequestProcessor::class
  15. )]
  16. class OrganizationCreationRequest
  17. {
  18. /**
  19. * Id 'bidon' ajouté par défaut pour permettre la construction
  20. * de l'IRI par api platform.
  21. */
  22. #[ApiProperty(identifier: true)]
  23. protected int $id = 0;
  24. }