diff --git a/pom.xml b/pom.xml index 953c59c6..7a99cfe8 100644 --- a/pom.xml +++ b/pom.xml @@ -199,6 +199,11 @@ micrometer-registry-prometheus runtime + + io.swagger.core.v3 + swagger-core + 2.2.20 + diff --git a/src/main/java/org/phoebus/channelfinder/Application.java b/src/main/java/org/phoebus/channelfinder/Application.java index 7f33e61f..73d2f2d3 100644 --- a/src/main/java/org/phoebus/channelfinder/Application.java +++ b/src/main/java/org/phoebus/channelfinder/Application.java @@ -20,6 +20,8 @@ import java.util.logging.Level; import java.util.logging.Logger; +import io.swagger.v3.oas.annotations.OpenAPIDefinition; +import io.swagger.v3.oas.annotations.servers.Server; import org.phoebus.channelfinder.example.PopulateService; import org.phoebus.channelfinder.processors.ChannelProcessor; import org.springframework.beans.factory.annotation.Autowired; @@ -38,6 +40,11 @@ @EnableAutoConfiguration @ComponentScan(basePackages="org.phoebus.channelfinder") @EnableScheduling +@OpenAPIDefinition( + servers = { + @Server(url = "/") + } +) @SpringBootApplication public class Application implements ApplicationRunner { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index db458fff..6b891fb1 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -11,7 +11,7 @@ server.ssl.key-store=classpath:keystore/newcf.p12 server.ssl.key-store-password=password server.ssl.key-alias=cf -security.require-ssl=true +security.require-ssl=false server.compression.enabled=true # opt in to content types