Ensure CPS REST API Specs conform to ONAP standards 26/117826/2
authorRishi.Chail <rishi.chail@est.tech>
Sun, 24 Jan 2021 20:33:50 +0000 (20:33 +0000)
committerRishi.Chail <rishi.chail@est.tech>
Mon, 25 Jan 2021 16:08:56 +0000 (16:08 +0000)
Issue-ID: CPS-25

Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: I289248b0f67949a2b9515932628edd4a7bd77a58

cps-rest/docs/api/swagger/openapi.yml
cps-rest/src/main/resources/openapi-configuration.json [deleted file]

index 44064e2..57a1102 100755 (executable)
@@ -1,8 +1,20 @@
 openapi: 3.0.1
 info:
-  title: CPS API
-  description: Configuration Persistence Service API
-  version: "1.0"
+  title: ONAP Open API v3 Configuration Persistence Service
+  description: Configuration Persistence Service is a Model Driven Generic Database
+  version: "1.0.0"
+  contact: 
+     name: ONAP
+     url: "https://onap.readthedocs.io"
+     email: "onap-discuss@lists.onap.org"
+  license: 
+      name: "Apache 2.0"
+      url: "http://www.apache.org/licenses/LICENSE-2.0"
+  x-planned-retirement-date: "202212"
+  x-component: "Modeling"
+  x-logo:
+      url: "cps_logo.png"
+
 servers:
   - url: //localhost:8088/
 tags:
diff --git a/cps-rest/src/main/resources/openapi-configuration.json b/cps-rest/src/main/resources/openapi-configuration.json
deleted file mode 100644 (file)
index ad5998f..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-{\r
-    "resourcePackages": [\r
-        "org.onap.cps.rest.controller"\r
-    ],\r
-    "prettyPrint": true,\r
-    "cacheTTL": 0,\r
-    "openAPI": {\r
-        "info": {\r
-            "title": "ONAP Open API v3 CPS Spec",\r
-            "description": "The API Description may be multiline, and GitHub Flavored Markdown, GFM syntax, can be used for rich text representation.",\r
-            "x-logo": {\r
-                "url": "logo.png"\r
-            },\r
-            "contact": {\r
-                "name": "ONAP",\r
-                "url": "https://onap.readthedocs.io",\r
-                "email": "onap-discuss@lists.onap.org"\r
-            },\r
-            "license": {\r
-                "name": "Apache 2.0",\r
-                "url": "http://www.apache.org/licenses/LICENSE-2.0"\r
-            },\r
-            "version": "1.2.34",\r
-            "x-planned-retirement-date": "202207",\r
-            "x-component": "Modeling"\r
-        }\r
-    }\r
-}\r