summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/swagger/service/rest/SwaggerRoa.java4
-rw-r--r--src/main/resources/swagger.json12
2 files changed, 13 insertions, 3 deletions
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