From 24fb6f0d980f04a4ced12016b1e74871eabf562b Mon Sep 17 00:00:00 2001 From: Matthias Schuhmayer <38959016+mattamon@users.noreply.github.com> Date: Fri, 18 Oct 2024 08:59:43 +0200 Subject: [PATCH] [Task] Change route from .json to /json (#501) * Change route from .json to /json * Change route here too --- doc/00_Installation.md | 2 +- src/OpenApi/Controller/OpenApiController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: 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();