diff options
-rw-r--r-- | pom.xml | 2 | ||||
-rw-r--r-- | src/main/java/org/onap/swagger/service/rest/SwaggerRoa.java | 4 | ||||
-rw-r--r-- | src/main/resources/swagger.json | 12 |
3 files changed, 14 insertions, 4 deletions
@@ -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 |