diff --git a/simulator-starter/pom.xml b/simulator-starter/pom.xml index a45526538..e2bdcc4fa 100644 --- a/simulator-starter/pom.xml +++ b/simulator-starter/pom.xml @@ -74,7 +74,7 @@ org.springdoc - springdoc-openapi-starter-common + springdoc-openapi-starter-webmvc-api 2.2.0 diff --git a/simulator-ui/src/main/webapp/swagger-ui/index.html b/simulator-ui/src/main/webapp/swagger-ui/index.html index 36e6c96ba..2848c6124 100644 --- a/simulator-ui/src/main/webapp/swagger-ui/index.html +++ b/simulator-ui/src/main/webapp/swagger-ui/index.html @@ -45,12 +45,7 @@ let urls; if (!urls || urls.length === 0) { - const response = await axios.get('/api/manage/jhiopenapigroups', axiosConfig); - if (Array.isArray(response.data)) { - urls = response.data.map(({ group, description }) => ({ name: description, url: `${serverBaseUri}${baseUrl}/${group}` })); - } else { - urls = [{ name: 'default', url: `${serverBaseUri}${baseUrl}` }]; - } + urls = [{ name: 'default', url: `${serverBaseUri}${baseUrl}` }]; } console.log(`Swagger urls`, urls);