feat : ajout de l'impression des tableaux d'absence
This commit is contained in:
25
src/ApiResource/AbsencePrint.php
Normal file
25
src/ApiResource/AbsencePrint.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\ApiResource;
|
||||
|
||||
use ApiPlatform\Metadata\ApiResource;
|
||||
use ApiPlatform\Metadata\Get;
|
||||
use ApiPlatform\Metadata\QueryParameter;
|
||||
use App\State\AbsencePrintProvider;
|
||||
|
||||
#[ApiResource(
|
||||
operations: [
|
||||
new Get(
|
||||
uriTemplate: '/absences/print',
|
||||
provider: AbsencePrintProvider::class,
|
||||
parameters: [
|
||||
new QueryParameter(key: 'from', required: true),
|
||||
new QueryParameter(key: 'to', required: true),
|
||||
new QueryParameter(key: 'sites', required: false),
|
||||
]
|
||||
),
|
||||
]
|
||||
)]
|
||||
final class AbsencePrint {}
|
||||
Reference in New Issue
Block a user