From 73b36b783e363b1eea326cc8a91be3d9111affba Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Mon, 17 Sep 2018 14:17:14 +0530 Subject: Improve CLM coverage Issue-ID: MSB-281 Change-Id: Ibce48a398e62e92a0c6ba8040e73b0dd306a2234 Signed-off-by: Kanagaraj Manickam k00365106 --- pom.xml | 2 +- src/main/java/org/onap/swagger/service/rest/SwaggerRoa.java | 4 ++-- src/main/resources/swagger.json | 12 +++++++++++- 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 @@ org.springframework spring-beans - 3.1.0.RELEASE + 3.2.9.RELEASE net.sf.json-lib 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 -- cgit 1.2.3-korg