summaryrefslogtreecommitdiffstats
path: root/catalog/swagger
diff options
context:
space:
mode:
authordyh <dengyuanhong@chinamobile.com>2019-09-11 14:26:19 +0800
committerdyh <dengyuanhong@chinamobile.com>2019-09-11 14:28:14 +0800
commit78a414334876164ba61f63bed7cc91dc48620fcf (patch)
tree2af8444e8be7abb421fc1142383a3216e406383b /catalog/swagger
parent5d5d8f38910c9e776a3d38bbeea26e85a08ed177 (diff)
update swagger info, add tags for swagger_auto_schema
Change-Id: I50867c324e492cc7472bc199a4f72d202f235ce0 Issue-ID: MODELING-221 Signed-off-by: dyh <dengyuanhong@chinamobile.com>
Diffstat (limited to 'catalog/swagger')
-rw-r--r--catalog/swagger/etsicatalog.swagger.json (renamed from catalog/swagger/vfc.catalog.swagger.json)8
-rw-r--r--catalog/swagger/urls.py2
-rw-r--r--catalog/swagger/views.py2
3 files changed, 6 insertions, 6 deletions
diff --git a/catalog/swagger/vfc.catalog.swagger.json b/catalog/swagger/etsicatalog.swagger.json
index 1327462..941b42a 100644
--- a/catalog/swagger/vfc.catalog.swagger.json
+++ b/catalog/swagger/etsicatalog.swagger.json
@@ -2,12 +2,12 @@
"swagger": "2.0",
"info": {
"version": "1.0.0",
- "title": "ONAP VFC Catalog Rest API",
- "description": "VFC Catalog Management API.",
+ "title": "ONAP Modeling etsicatalog Rest API",
+ "description": "Modeling etsicatalog Management API.",
"contact": {
- "name": "ONAP VFC team",
+ "name": "ONAP Modeling team",
"email": "onap-discuss@lists.onap.org",
- "url": "https://gerrit.onap.org/r/#/admin/projects/vfc/nfvo/catalog"
+ "url": "https://gerrit.onap.org/r/#/admin/projects/modeling/etsicatalog"
}
},
"basePath": "/api/catalog/v1",
diff --git a/catalog/swagger/urls.py b/catalog/swagger/urls.py
index 5437ee5..6de480c 100644
--- a/catalog/swagger/urls.py
+++ b/catalog/swagger/urls.py
@@ -19,7 +19,7 @@ from rest_framework import permissions
# Add code for generating swagger automatically.
swagger_info = openapi.Info(
- title="VFC Catalog API",
+ title="Modeling etsicatalog API",
default_version='v1',
description="""
diff --git a/catalog/swagger/views.py b/catalog/swagger/views.py
index 33d0edb..4739188 100644
--- a/catalog/swagger/views.py
+++ b/catalog/swagger/views.py
@@ -21,7 +21,7 @@ from rest_framework.views import APIView
class SwaggerJsonView(APIView):
def get(self, request):
- json_file = os.path.join(os.path.dirname(__file__), 'vfc.catalog.swagger.json')
+ json_file = os.path.join(os.path.dirname(__file__), 'etsicatalog.swagger.json')
f = open(json_file)
json_data = json.JSONDecoder().decode(f.read())
f.close()