Skip to content

Commit

Permalink
1518 - Splitted Swagger UI into 2 pages for platform-api and ingestio…
Browse files Browse the repository at this point in the history
…n-api (#1537)
  • Loading branch information
Vladysl authored Nov 29, 2023
1 parent c4f6814 commit 7394c6a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
spring-webflux = '6.0.9'
reactor-extra = '3.5.1'
micrometer-registry-prometheus = '1.9.0'
ingestion-contract-server = '0.1.28'
ingestion-contract-server = '0.1.32'
oddrn-generator-java = '0.1.20'
odd-integration-manifests = '0.0.6'
apache-collections = '4.4'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package org.opendatadiscovery.oddplatform.config;

import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwaggerUIConfiguration {

@Bean
public GroupedOpenApi platformOpenApi() {
final String[] paths = { "/api/**" };
return GroupedOpenApi.builder().group("platform-api").pathsToMatch(paths)
.build();
}

@Bean
public GroupedOpenApi ingestionOpenApi() {
final String[] paths = { "/ingestion/**" };
return GroupedOpenApi.builder().group("ingestion-api").pathsToMatch(paths)
.build();
}
}

0 comments on commit 7394c6a

Please sign in to comment.