22 lines
541 B
PHP
22 lines
541 B
PHP
<?php
|
|
|
|
namespace App\Domain\Manga\Infrastructure\ApiPlatform\Resource;
|
|
|
|
use ApiPlatform\Metadata\ApiResource;
|
|
use ApiPlatform\Metadata\Get;
|
|
use App\Domain\Manga\Infrastructure\ApiPlatform\Dto\MangaDetail;
|
|
use App\Domain\Manga\Infrastructure\ApiPlatform\State\Provider\GetMangaStateProvider;
|
|
|
|
#[ApiResource(
|
|
shortName: 'Manga',
|
|
operations: [
|
|
new Get(
|
|
uriTemplate: '/mangas/{id}',
|
|
provider: GetMangaStateProvider::class,
|
|
output: MangaDetail::class
|
|
)
|
|
]
|
|
)]
|
|
class MangaResource
|
|
{
|
|
}
|