- 3 nouveaux endpoints API Platform pass-through sur /api/bovins/{inventory|returned-dossiers|presumed-exits} consommant BovinApiInterface v0.0.6
- AnimalSummaryMapper (src/Service/) factorisant le mapping DTO EDNOTIF -> ressource
- src/State/ réorganisé par domaine (Bovin/, Reception/, Shipment/, Building/, User/, System/)
- tag OpenAPI "Bovins" pour regrouper les endpoints ednotif dans Swagger
- malio/ednotif-bundle passé à v0.0.6
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
32 lines
732 B
PHP
32 lines
732 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\BovinPresumedExitsProvider;
|
|
|
|
#[ApiResource(
|
|
operations: [
|
|
new Get(
|
|
uriTemplate: '/bovins/presumed-exits',
|
|
openapi: new OpenApiOperation(tags: ['Bovins']),
|
|
provider: BovinPresumedExitsProvider::class
|
|
),
|
|
]
|
|
)]
|
|
final class BovinPresumedExits
|
|
{
|
|
#[ApiProperty(identifier: true)]
|
|
public string $id = 'current';
|
|
|
|
public int $nbBovins = 0;
|
|
|
|
/** @var list<BovinPresumedExit> */
|
|
public array $presumedExits = [];
|
|
}
|