Skip to content

Commit

Permalink
fix(simulator-starter): swagger-api and -ui
Browse files Browse the repository at this point in the history
  • Loading branch information
bbortt committed Nov 5, 2023
1 parent 182cd56 commit 73444a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion simulator-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<!-- Swagger Documentation -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-common</artifactId>
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
<version>2.2.0</version>
</dependency>

Expand Down
7 changes: 1 addition & 6 deletions simulator-ui/src/main/webapp/swagger-ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 73444a8

Please sign in to comment.