diff --git a/config/pimcore/routing.yaml b/config/pimcore/routing.yaml index 44a893a69..50a1c1707 100644 --- a/config/pimcore/routing.yaml +++ b/config/pimcore/routing.yaml @@ -1,4 +1,4 @@ -api_dcos: +api_docs: path: /studio/api/docs methods: GET defaults: { _controller: nelmio_api_doc.controller.swagger_ui } diff --git a/src/DependencyInjection/PimcoreStudioApiExtension.php b/src/DependencyInjection/PimcoreStudioApiExtension.php index 0bb3b2141..f0596b121 100644 --- a/src/DependencyInjection/PimcoreStudioApiExtension.php +++ b/src/DependencyInjection/PimcoreStudioApiExtension.php @@ -104,6 +104,7 @@ private function getPaths(): array $paths = [...$paths, ...Yaml::parseFile($file->getRealPath())]; } + ksort($paths); return $paths; } @@ -116,6 +117,7 @@ private function getSchemas(): array $schemas = [...$schemas, ...Yaml::parseFile($file->getRealPath())]; } + ksort($schemas); return $schemas; } }