This commit is contained in:
parent
f75b535426
commit
b5a832fbbc
@@ -5,15 +5,16 @@ namespace App\Domain\Manga\Infrastructure\ApiPlatform\Resource;
|
||||
use ApiPlatform\Metadata\ApiResource;
|
||||
use ApiPlatform\Metadata\Delete;
|
||||
use App\Domain\Manga\Infrastructure\ApiPlatform\State\Processor\DeleteMangaProcessor;
|
||||
use App\Domain\Manga\Infrastructure\ApiPlatform\State\Provider\DeleteMangaProvider;
|
||||
|
||||
#[ApiResource(
|
||||
shortName: 'Manga',
|
||||
operations: [
|
||||
new Delete(
|
||||
uriTemplate: '/mangas/{id}',
|
||||
provider: DeleteMangaProvider::class,
|
||||
processor: DeleteMangaProcessor::class,
|
||||
name: 'delete_manga',
|
||||
read: false,
|
||||
openapiContext: [
|
||||
'summary' => 'Delete a manga',
|
||||
'description' => 'Permanently deletes a manga and all its associated chapters',
|
||||
|
||||
Reference in New Issue
Block a user