feat: GetChapters endpoint + tests

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-02-10 20:07:24 +01:00
parent 2f615a4936
commit 6667cc224b
15 changed files with 601 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Domain\Manga\Infrastructure\ApiPlatform\Resource;
use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Get;
use App\Domain\Manga\Infrastructure\ApiPlatform\Dto\ChapterCollection;
use App\Domain\Manga\Infrastructure\ApiPlatform\State\Provider\GetMangaChaptersStateProvider;
#[ApiResource(
shortName: 'MangaChapters',
operations: [
new Get(
uriTemplate: '/mangas/{id}/chapters',
provider: GetMangaChaptersStateProvider::class,
output: ChapterCollection::class
)
]
)]
class MangaChaptersResource
{
}