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();