summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-09-17 14:17:14 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-09-17 14:17:14 +0530
commit73b36b783e363b1eea326cc8a91be3d9111affba (patch)
tree747dd326548dd4971e2aed1347c0776196b64c85
parentd3a4527d63cde8660980d3a946df795eba011c37 (diff)
Improve CLM coverage3.0.1-ONAP
Issue-ID: MSB-281 Change-Id: Ibce48a398e62e92a0c6ba8040e73b0dd306a2234 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
-rw-r--r--pom.xml2
-rw-r--r--src/main/java/org/onap/swagger/service/rest/SwaggerRoa.java4
-rw-r--r--src/main/resources/swagger.json12
3 files changed, 14 insertions, 4 deletions
diff --git a/pom.xml b/pom.xml
index 2eea1e5..f0cb59a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -63,7 +63,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
- <version>3.1.0.RELEASE</version>
+ <version>3.2.9.RELEASE</version>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
diff --git a/src/main/java/org/onap/swagger/service/rest/SwaggerRoa.java b/src/main/java/org/onap/swagger/service/rest/SwaggerRoa.java
index 23c5d12..dcc1094 100644
--- a/src/main/java/org/onap/swagger/service/rest/SwaggerRoa.java
+++ b/src/main/java/org/onap/swagger/service/rest/SwaggerRoa.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2017 Huawei Technologies Co., Ltd.
+ * Copyright 2017-18 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,7 +35,7 @@ import javax.ws.rs.core.MediaType;
public class SwaggerRoa {
/**
- * API doc.
+ * Swagger API doc.
*
* @return string
* @throws IOException exception
diff --git a/src/main/resources/swagger.json b/src/main/resources/swagger.json
index 9e26dfe..3c54bfa 100644
--- a/src/main/resources/swagger.json
+++ b/src/main/resources/swagger.json
@@ -1 +1,11 @@
-{} \ No newline at end of file
+{swagger: "2.0",
+info: {
+title: "os-volume",
+version: "Unknown"
+},
+consumes: [
+"application/json"
+],
+produces: [
+"application/json"
+]} \ No newline at end of file