summaryrefslogtreecommitdiffstats
path: root/api/views.py
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2016-11-30 08:22:54 +0000
committerchenjiankun <chenjiankun1@huawei.com>2016-11-30 08:22:54 +0000
commitbce19d39136c5e830e771ee449f22fca85fec259 (patch)
treef4e740584487d24e655ff3624a10875efd7cbc20 /api/views.py
parented89d5d7372b598a3b849f7753e8d29a39282d53 (diff)
Modify url mapping to make API more Restful
JIRA: YARDSTICK-435 Change-Id: Ief767ceca2979494ec0b4ea4d197fd399352b856 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'api/views.py')
-rw-r--r--api/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/views.py b/api/views.py
index 7357625e0..065de673b 100644
--- a/api/views.py
+++ b/api/views.py
@@ -19,7 +19,7 @@ from api.actions import env as env_action
logger = logging.getLogger(__name__)
-class Test(Resource):
+class Release(Resource):
def post(self):
action = common_utils.translate_to_str(request.json.get('action', ''))
args = common_utils.translate_to_str(request.json.get('args', {}))
@@ -31,7 +31,7 @@ class Test(Resource):
return common_utils.error_handler('Wrong action')
-class Result(Resource):
+class Results(Resource):
def get(self):
args = common_utils.translate_to_str(request.args)
action = args.get('action', '')