<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
<!-- North Bound -->
<dependency>
<groupId>org.onap.ccsdk.apps.blueprintsprocessor</groupId>
import org.slf4j.Logger;\r
import org.slf4j.LoggerFactory;\r
import org.springframework.context.annotation.Bean;\r
-import org.springframework.context.annotation.Configuration;\r
import springfox.documentation.builders.PathSelectors;\r
import springfox.documentation.builders.RequestHandlerSelectors;\r
import springfox.documentation.service.ApiInfo;\r
import springfox.documentation.service.Contact;\r
import springfox.documentation.spi.DocumentationType;\r
import springfox.documentation.spring.web.plugins.Docket;\r
-import springfox.documentation.swagger2.annotations.EnableSwagger2;\r
\r
import java.util.Arrays;\r
import java.util.Collections;\r
*\r
* @author Brinda Santh 8/13/2018\r
*/\r
-@Configuration\r
-@EnableSwagger2\r
+//@Configuration\r
+//@EnableSwagger2\r
+@SuppressWarnings("unused")\r
+@Deprecated\r
public class SwaggerConfig {\r
private static final Set<String> DEFAULT_PRODUCES_AND_CONSUMES =\r
new HashSet<>(Arrays.asList("application/json",\r
registry.addResourceHandler("/webjars/**")\r
.addResourceLocations("classpath:/META-INF/resources/webjars/");\r
}\r
+\r
+ @Override\r
+ public void addCorsMappings(CorsRegistry corsRegistry) {\r
+ corsRegistry.addMapping("/**")\r
+ .allowedOrigins("*")\r
+ .allowedMethods("*")\r
+ .allowedHeaders("DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range")\r
+ .maxAge(3600);\r
+ }\r
}\r
open class Status {\r
@get:ApiModelProperty(required = true)\r
var code: Int = 200\r
+ @get:ApiModelProperty(required = true)\r
+ var eventType: String = "EVENT-ACTION-RESPONSE"\r
+ @get:ApiModelProperty(required = true, example = "2012-04-23T18:25:43.511Z")\r
+ @get:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")\r
+ var timestamp: Date = Date()\r
@get:ApiModelProperty(required = false)\r
var errorMessage: String? = null\r
@get:ApiModelProperty(required = true)\r
<name>Blueprints Processor Parent</name>
<description>Blueprints Processor Parent</description>
<properties>
- <spring.boot.version>2.0.6.RELEASE</spring.boot.version>
- <spring.version>5.0.10.RELEASE</spring.version>
+ <spring.boot.version>2.1.1.RELEASE</spring.boot.version>
+ <spring.version>5.1.3.RELEASE</spring.version>
<kotlin.version>1.3.10</kotlin.version>
<kotlin.maven.version>1.3.10</kotlin.maven.version>
<kotlin.couroutines.version>1.0.1</kotlin.couroutines.version>
</dependency>
<!-- GRPC Dependencies -->
+ <dependency>
+ <groupId>io.grpc</groupId>
+ <artifactId>grpc-core</artifactId>
+ <version>${grpc.version}</version>
+ </dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>io.grpc</groupId>
+ <artifactId>grpc-testing</artifactId>
+ <version>${grpc.version}</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
</dependencyManagement>