summaryrefslogtreecommitdiffstats
path: root/api/urls.py
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2017-07-13 09:39:20 +0000
committerchenjiankun <chenjiankun1@huawei.com>2017-07-14 04:22:03 +0000
commit1a83219677fd0ce48f59e09f5a787d8296ba9261 (patch)
tree5651b4d9f6a2ae2a901a49b9e49a0eed879ff371 /api/urls.py
parente1d830c41c0f67b631b5b83f295f9dd1d6f6f0f1 (diff)
Add API(v2) to upload openrc
JIRA: YARDSTICK-719 API: /api/v2/yardstick/environments/openrcs/action METHOD: POST PARAMS: { 'action': 'upload_openrc', 'args': { 'file': file, 'environment_id': environment_id } } Change-Id: If367904a2d0c2d4a192fdc87a8da21ac6549269e Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'api/urls.py')
-rw-r--r--api/urls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/urls.py b/api/urls.py
index 70d69f881..efb7f8945 100644
--- a/api/urls.py
+++ b/api/urls.py
@@ -25,4 +25,6 @@ urlpatterns = [
Url('/api/v2/yardstick/environments', 'v2_environments'),
Url('/api/v2/yardstick/environments/action', 'v2_environments'),
Url('/api/v2/yardstick/environments/<environment_id>', 'v2_environment'),
+
+ Url('/api/v2/yardstick/environments/openrcs/action', 'v2_openrc'),
]