<?php

declare(strict_types=1);

namespace App\ApiResource;

use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Get;
use ApiPlatform\Metadata\QueryParameter;
use App\State\SalaryRecapPrintProvider;

#[ApiResource(
    operations: [
        new Get(
            uriTemplate: '/salary-recap/print',
            provider: SalaryRecapPrintProvider::class,
            parameters: [
                new QueryParameter(key: 'month', required: true),
            ],
            security: "is_granted('ROLE_ADMIN')"
        ),
    ]
)]
final class SalaryRecapPrint {}
