<?php

namespace App\Domain\Scraping\Infrastructure\ApiPlatform\Resource;

use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Post;
use App\Domain\Scraping\Infrastructure\ApiPlatform\State\Processor\CheckAllScrapersHealthStateProcessor;

#[ApiResource(
    shortName: 'Scraping',
    operations: [
        new Post(
            uriTemplate: '/scraping/check-all-health',
            processor: CheckAllScrapersHealthStateProcessor::class,
            output: false,
            status: 202,
            description: 'Déclenche le test de santé de tous les scrapers configurés avec testSlug',
        ),
    ]
)]
class CheckAllScrapersHealthResource
{
}
