Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
| 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: #52 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
33 lines
1007 B
PHP
33 lines
1007 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\Bovin\BovineInventoryExportProvider;
|
|
|
|
#[ApiResource(
|
|
operations: [
|
|
new Get(
|
|
uriTemplate: '/bovines/inventory-export',
|
|
openapi: new OpenApiOperation(
|
|
summary: "Export Excel de l'inventaire bovin actuel.",
|
|
description: "Retourne un fichier XLSX listant tous les bovins actifs (exitedAt IS NULL) triés par date de naissance croissante, avec colorisation des lignes selon l'âge.",
|
|
tags: ['Bovines'],
|
|
),
|
|
security: "is_granted('ROLE_BUREAU')",
|
|
output: false,
|
|
provider: BovineInventoryExportProvider::class,
|
|
),
|
|
]
|
|
)]
|
|
final class BovineInventoryExport
|
|
{
|
|
#[ApiProperty(identifier: true)]
|
|
public string $id = 'current';
|
|
}
|