From e90c0a140ee7f66b88d34f43ca950bacf4632735 Mon Sep 17 00:00:00 2001 From: "ext.jeremy.guillot@maxicoffee.domains" Date: Wed, 12 Feb 2025 17:18:16 +0100 Subject: [PATCH] feat: Rangement des endpoints dans la doc Api Platform --- .../ApiPlatform/Resource/CreateMangaDirectlyResource.php | 2 +- .../Infrastructure/ApiPlatform/Resource/CreateMangaResource.php | 2 +- .../ApiPlatform/Resource/FetchMangaChaptersResource.php | 2 +- .../Infrastructure/ApiPlatform/Resource/MangaSearchResource.php | 2 +- .../Infrastructure/ApiPlatform/Dto/ScrapeChapterRequest.php | 2 +- .../Infrastructure/ApiPlatform/Dto/ScrapingStatusResponse.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/CreateMangaDirectlyResource.php b/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/CreateMangaDirectlyResource.php index e9a841b..d33f7f3 100644 --- a/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/CreateMangaDirectlyResource.php +++ b/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/CreateMangaDirectlyResource.php @@ -8,7 +8,7 @@ use App\Domain\Manga\Infrastructure\ApiPlatform\State\Processor\CreateMangaDirec use Symfony\Component\Validator\Constraints as Assert; #[ApiResource( - shortName: 'CreateMangaDirectly', + shortName: 'Manga', operations: [ new Post( uriTemplate: '/mangas/create', diff --git a/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/CreateMangaResource.php b/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/CreateMangaResource.php index 94c42a5..21e0e08 100644 --- a/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/CreateMangaResource.php +++ b/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/CreateMangaResource.php @@ -8,7 +8,7 @@ use App\Domain\Manga\Infrastructure\ApiPlatform\State\Processor\CreateMangaProce use Symfony\Component\Validator\Constraints as Assert; #[ApiResource( - shortName: 'CreateManga', + shortName: 'Manga', operations: [ new Post( uriTemplate: '/mangas/create-from-mangadex', diff --git a/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/FetchMangaChaptersResource.php b/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/FetchMangaChaptersResource.php index d4f894d..cc72760 100644 --- a/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/FetchMangaChaptersResource.php +++ b/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/FetchMangaChaptersResource.php @@ -8,7 +8,7 @@ use App\Domain\Manga\Infrastructure\ApiPlatform\State\Processor\FetchMangaChapte use Symfony\Component\Validator\Constraints as Assert; #[ApiResource( - shortName: 'FetchMangaChapters', + shortName: 'MangaChapters', operations: [ new Post( uriTemplate: '/manga/chapters/fetch', diff --git a/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/MangaSearchResource.php b/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/MangaSearchResource.php index 9625a2c..aca6354 100644 --- a/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/MangaSearchResource.php +++ b/src/Domain/Manga/Infrastructure/ApiPlatform/Resource/MangaSearchResource.php @@ -8,7 +8,7 @@ use App\Domain\Manga\Infrastructure\ApiPlatform\Dto\MangaSearchCollection; use App\Domain\Manga\Infrastructure\ApiPlatform\State\Provider\SearchMangaStateProvider; #[ApiResource( - shortName: 'MangaSearch', + shortName: 'Manga', operations: [ new Get( uriTemplate: '/mangas-search', diff --git a/src/Domain/Scraping/Infrastructure/ApiPlatform/Dto/ScrapeChapterRequest.php b/src/Domain/Scraping/Infrastructure/ApiPlatform/Dto/ScrapeChapterRequest.php index aef3035..8ef03e9 100644 --- a/src/Domain/Scraping/Infrastructure/ApiPlatform/Dto/ScrapeChapterRequest.php +++ b/src/Domain/Scraping/Infrastructure/ApiPlatform/Dto/ScrapeChapterRequest.php @@ -9,7 +9,7 @@ use App\Domain\Scraping\Infrastructure\ApiPlatform\State\Processor\ScrapeChapter use Symfony\Component\Validator\Constraints as Assert; #[ApiResource( - shortName: 'ScrapeChapter', + shortName: 'Scraping', operations: [ new Post( uriTemplate: '/scraping/chapters', diff --git a/src/Domain/Scraping/Infrastructure/ApiPlatform/Dto/ScrapingStatusResponse.php b/src/Domain/Scraping/Infrastructure/ApiPlatform/Dto/ScrapingStatusResponse.php index 5bd3f5b..e1ebf4d 100644 --- a/src/Domain/Scraping/Infrastructure/ApiPlatform/Dto/ScrapingStatusResponse.php +++ b/src/Domain/Scraping/Infrastructure/ApiPlatform/Dto/ScrapingStatusResponse.php @@ -10,7 +10,7 @@ use ApiPlatform\Metadata\Link; use App\Domain\Scraping\Domain\Model\ScrapingJob; #[ApiResource( - shortName: 'ScrapingStatus', + shortName: 'Scraping', operations: [ new Get( uriTemplate: '/scraping/jobs/{jobId}/status',