summaryrefslogtreecommitdiffstats
path: root/api/urls.py
diff options
context:
space:
mode:
authorJing Lu <lvjing5@huawei.com>2017-07-14 08:38:41 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-07-14 08:38:41 +0000
commitfb86be55d52f6cefd4e0de4b857ac76d00a9e681 (patch)
tree00dff5a143b5f3201c3b50e2f5fbb8949f1e3780 /api/urls.py
parent80e57bf2264577cb08c2c347c7f0d272ee8d192f (diff)
parent933cf69b72bb61450ba5e4fa857303e2e05f95b3 (diff)
Merge "Initial all url of api v2"
Diffstat (limited to 'api/urls.py')
-rw-r--r--api/urls.py26
1 files changed, 24 insertions, 2 deletions
diff --git a/api/urls.py b/api/urls.py
index 82df17541..5c7e9f7b5 100644
--- a/api/urls.py
+++ b/api/urls.py
@@ -26,9 +26,31 @@ urlpatterns = [
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_openrcs'),
- Url('/api/v2/yardstick/environments/openrcs/<openrc_id>', 'v2_openrc'),
+ Url('/api/v2/yardstick/openrcs/action', 'v2_openrcs'),
+ Url('/api/v2/yardstick/openrcs/<openrc_id>', 'v2_openrc'),
Url('/api/v2/yardstick/pods/action', 'v2_pods'),
Url('/api/v2/yardstick/pods/<pod_id>', 'v2_pod'),
+
+ Url('/api/v2/yardstick/images', 'v2_images'),
+ Url('/api/v2/yardstick/images/action', 'v2_images'),
+
+ Url('/api/v2/yardstick/containers/action', 'v2_containers'),
+ Url('/api/v2/yardstick/containers/<container_id>', 'v2_container'),
+
+ Url('/api/v2/yardstick/projects', 'v2_projects'),
+ Url('/api/v2/yardstick/projects/action', 'v2_projects'),
+ Url('/api/v2/yardstick/projects/<project_id>', 'v2_project'),
+
+ Url('/api/v2/yardstick/tasks', 'v2_tasks'),
+ Url('/api/v2/yardstick/tasks/action', 'v2_tasks'),
+ Url('/api/v2/yardstick/tasks/<task_id>', 'v2_task'),
+
+ Url('/api/v2/yardstick/testcases', 'v2_testcases'),
+ Url('/api/v2/yardstick/testcases/action', 'v2_testcases'),
+ Url('/api/v2/yardstick/testcases/<case_name>', 'v2_testcase'),
+
+ Url('/api/v2/yardstick/testsuites', 'v2_testsuites'),
+ Url('/api/v2/yardstick/testsuites/action', 'v2_testsuites'),
+ Url('/api/v2/yardstick/testsuites/<suite_name>', 'v2_testsuites')
]