summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/opnfv_testapi/resources/project_handlers.py
diff options
context:
space:
mode:
authorrohitsakala <rohitsakala@gmail.com>2017-01-03 22:38:38 +0530
committerRohit Sakala <rohitsakala@gmail.com>2017-01-04 09:07:25 +0000
commit03758419b54c28d13189f310a6de5e1815423ee5 (patch)
treefe76bcbf0ad20b276bfd7808ddc49ddc49cc6695 /utils/test/testapi/opnfv_testapi/resources/project_handlers.py
parent0520eae9676a06946dee8545d8cae61f80648ce2 (diff)
Update nicknames in swagger spec
Swagger codegen uses nicknames for defining titles in the api documentation. Link - https://github.com/OAI/OpenAPI-Specification/blob/master/versions/1.2.md Change-Id: Ia35718b77dfcac53317384c4445225f28e505919 Signed-off-by: rohitsakala <rohitsakala@gmail.com>
Diffstat (limited to 'utils/test/testapi/opnfv_testapi/resources/project_handlers.py')
-rw-r--r--utils/test/testapi/opnfv_testapi/resources/project_handlers.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/test/testapi/opnfv_testapi/resources/project_handlers.py b/utils/test/testapi/opnfv_testapi/resources/project_handlers.py
index 1e9a97230..9cf698623 100644
--- a/utils/test/testapi/opnfv_testapi/resources/project_handlers.py
+++ b/utils/test/testapi/opnfv_testapi/resources/project_handlers.py
@@ -22,7 +22,7 @@ class GenericProjectHandler(GenericApiHandler):
class ProjectCLHandler(GenericProjectHandler):
- @swagger.operation(nickname="list-all")
+ @swagger.operation(nickname="List all Projects")
def get(self):
"""
@description: list all projects
@@ -31,7 +31,7 @@ class ProjectCLHandler(GenericProjectHandler):
"""
self._list()
- @swagger.operation(nickname="create")
+ @swagger.operation(nickname="Create a Project")
def post(self):
"""
@description: create a project
@@ -56,7 +56,7 @@ class ProjectCLHandler(GenericProjectHandler):
class ProjectGURHandler(GenericProjectHandler):
- @swagger.operation(nickname='get-one')
+ @swagger.operation(nickname='Get a Project by project_name')
def get(self, project_name):
"""
@description: get a single project by project_name
@@ -66,7 +66,7 @@ class ProjectGURHandler(GenericProjectHandler):
"""
self._get_one({'name': project_name})
- @swagger.operation(nickname="update")
+ @swagger.operation(nickname="Update a Project by project_name")
def put(self, project_name):
"""
@description: update a single project by project_name
@@ -82,7 +82,7 @@ class ProjectGURHandler(GenericProjectHandler):
db_keys = ['name']
self._update(query, db_keys)
- @swagger.operation(nickname='delete')
+ @swagger.operation(nickname='Delete a Project by project_name')
def delete(self, project_name):
"""
@description: delete a project by project_name