Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> | Numéro du ticket | Titre du ticket | |------------------|-----------------| | | | ## Description de la PR ## Modification du .env ## Check list - [ ] Pas de régression - [ ] TU/TI/TF rédigée - [ ] TU/TI/TF OK - [ ] CHANGELOG modifié Reviewed-on: #56 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
33 lines
944 B
PHP
33 lines
944 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\ApiResource;
|
|
|
|
use ApiPlatform\Metadata\ApiProperty;
|
|
use ApiPlatform\Metadata\ApiResource;
|
|
use ApiPlatform\Metadata\Get;
|
|
use ApiPlatform\OpenApi\Model\Operation as OpenApiOperation;
|
|
use App\State\Reception\ReceptionExportProvider;
|
|
|
|
#[ApiResource(
|
|
operations: [
|
|
new Get(
|
|
uriTemplate: '/receptions/export',
|
|
openapi: new OpenApiOperation(
|
|
summary: 'Export Excel des réceptions terminées.',
|
|
description: 'Retourne un fichier XLSX listant toutes les réceptions validées (isValid = true), triées par date décroissante.',
|
|
tags: ['Receptions'],
|
|
),
|
|
security: "is_granted('ROLE_BUREAU')",
|
|
output: false,
|
|
provider: ReceptionExportProvider::class,
|
|
),
|
|
]
|
|
)]
|
|
final class ReceptionExport
|
|
{
|
|
#[ApiProperty(identifier: true)]
|
|
public string $id = 'current';
|
|
}
|