From 33f9a7e512905507ee19840f459866a13f023626 Mon Sep 17 00:00:00 2001 From: mattamon Date: Thu, 17 Oct 2024 09:33:48 +0200 Subject: [PATCH 1/2] Change route from .json to /json --- src/OpenApi/Controller/OpenApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenApi/Controller/OpenApiController.php b/src/OpenApi/Controller/OpenApiController.php index e7dfa44d0..fd2d423c2 100644 --- a/src/OpenApi/Controller/OpenApiController.php +++ b/src/OpenApi/Controller/OpenApiController.php @@ -42,7 +42,7 @@ public function index(#[MapQueryString] LocaleParameter $localeParameter = new L ); } - #[Route('/docs.json', name: 'pimcore_studio_api_docs_json', methods: ['GET'])] + #[Route('/docs/json', name: 'pimcore_studio_api_docs_json', methods: ['GET'])] public function openapi(#[MapQueryString] LocaleParameter $localeParameter = new LocaleParameter()): JsonResponse { $config = $this->openApiService->getConfig(); From 37ffab5971ea04622e99b24f65614510fd90fba5 Mon Sep 17 00:00:00 2001 From: mattamon Date: Thu, 17 Oct 2024 16:31:11 +0200 Subject: [PATCH 2/2] Change route here too --- doc/00_Installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/00_Installation.md b/doc/00_Installation.md index b2b1c9bb8..9b04756aa 100644 --- a/doc/00_Installation.md +++ b/doc/00_Installation.md @@ -59,7 +59,7 @@ https:///pimcore-studio/api/docs You can also access the OpenApi documentation in JSON format by navigating to the following URL: ``` -https:///pimcore-studio/api/docs.json +https:///pimcore-studio/api/docs/json ``` It is also possible to export the OpenApi documentation as a JSON file by running the following command: