From c9b21a791a59aee62f2bae5ffeab43a58429330a Mon Sep 17 00:00:00 2001 From: rohitsakala Date: Sat, 21 Jan 2017 16:03:55 +0530 Subject: Shortening swagger spec nicknames This is being done because titles have become so long in index of documentation [0] that they don't fit in one line. [0] http://artifacts.opnfv.org/releng/docs/testapi.html JIRA: FUNCTEST-704 Change-Id: I046a21d7ceac6dc203ac71d169d4303095bdc69c Signed-off-by: rohitsakala --- testapi/opnfv_testapi/resources/scenario_handlers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testapi/opnfv_testapi/resources/scenario_handlers.py') diff --git a/testapi/opnfv_testapi/resources/scenario_handlers.py b/testapi/opnfv_testapi/resources/scenario_handlers.py index 28fe28e..a9b89eb 100644 --- a/testapi/opnfv_testapi/resources/scenario_handlers.py +++ b/testapi/opnfv_testapi/resources/scenario_handlers.py @@ -14,7 +14,7 @@ class GenericScenarioHandler(GenericApiHandler): class ScenariosCLHandler(GenericScenarioHandler): - @swagger.operation(nickname="List scenarios by queries") + @swagger.operation(nickname="queryScenarios") def get(self): """ @description: Retrieve scenario(s). @@ -63,7 +63,7 @@ class ScenariosCLHandler(GenericScenarioHandler): self._list(_set_query()) - @swagger.operation(nickname="Create a new scenario") + @swagger.operation(nickname="createScenario") def post(self): """ @description: create a new scenario by name @@ -88,7 +88,7 @@ class ScenariosCLHandler(GenericScenarioHandler): class ScenarioGURHandler(GenericScenarioHandler): - @swagger.operation(nickname='Get the scenario by name') + @swagger.operation(nickname='getScenarioByName') def get(self, name): """ @description: get a single scenario by name @@ -99,7 +99,7 @@ class ScenarioGURHandler(GenericScenarioHandler): self._get_one({'name': name}) pass - @swagger.operation(nickname="Update the scenario by name") + @swagger.operation(nickname="updateScenarioByName") def put(self, name): """ @description: update a single scenario by name -- cgit 1.2.3-korg