summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Sakoto <bruno.sakoto@bell.ca>2021-02-15 14:29:22 +0000
committerGerrit Code Review <gerrit@onap.org>2021-02-15 14:29:22 +0000
commit9d1acd1fe9cc8a48feb661bf7213c77a4598c1df (patch)
treeb7bd825675889c7e6580be5d14baece71c451e9f
parent6364703c2546a3cb9bb35d372a37b09a93bd9975 (diff)
parentcc6e5e26ddb8c1900b379b167f2c2173e9336871 (diff)
Merge "Ensure CPS REST API Specs conform to ONAP standards"
-rwxr-xr-xcps-rest/docs/api/swagger/openapi.yml18
-rw-r--r--cps-rest/src/main/resources/openapi-configuration.json28
2 files changed, 15 insertions, 31 deletions
diff --git a/cps-rest/docs/api/swagger/openapi.yml b/cps-rest/docs/api/swagger/openapi.yml
index 44064e2175..57a11027a4 100755
--- a/cps-rest/docs/api/swagger/openapi.yml
+++ b/cps-rest/docs/api/swagger/openapi.yml
@@ -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
index ad5998feb7..0000000000
--- a/cps-rest/src/main/resources/openapi-configuration.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "resourcePackages": [
- "org.onap.cps.rest.controller"
- ],
- "prettyPrint": true,
- "cacheTTL": 0,
- "openAPI": {
- "info": {
- "title": "ONAP Open API v3 CPS Spec",
- "description": "The API Description may be multiline, and GitHub Flavored Markdown, GFM syntax, can be used for rich text representation.",
- "x-logo": {
- "url": "logo.png"
- },
- "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"
- },
- "version": "1.2.34",
- "x-planned-retirement-date": "202207",
- "x-component": "Modeling"
- }
- }
-}