summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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