| 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 - [x] TU/TI/TF OK - [x] CHANGELOG modifié Reviewed-on: #6 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\ApiResource;
|
|
|
|
use ApiPlatform\Metadata\ApiProperty;
|
|
use ApiPlatform\Metadata\ApiResource;
|
|
use ApiPlatform\Metadata\Get;
|
|
use App\State\BovinIdentificationProvider;
|
|
|
|
#[ApiResource(
|
|
operations: [
|
|
new Get(
|
|
uriTemplate: '/bovins/{numeroNational}/identification',
|
|
provider: BovinIdentificationProvider::class
|
|
),
|
|
]
|
|
)]
|
|
final class BovinIdentification
|
|
{
|
|
#[ApiProperty(identifier: true)]
|
|
public string $numeroNational;
|
|
|
|
public ?string $sex = null;
|
|
public ?string $breedType = null;
|
|
public ?string $workNumber = null;
|
|
|
|
public ?string $birthDate = null;
|
|
public ?string $birthDateCompletenessFlag = null;
|
|
|
|
public ?bool $isFilie = null;
|
|
|
|
public ?string $motherNationalNumber = null;
|
|
public ?string $motherBreedType = null;
|
|
|
|
public ?string $fatherNationalNumber = null;
|
|
public ?string $fatherBreedType = null;
|
|
|
|
public ?string $birthExploitationNumber = null;
|
|
|
|
/** @var list<PresencePeriod> */
|
|
public array $presencePeriods = [];
|
|
}
|