X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=functest%2Fapi%2Furls.py;h=0cc22f80f13b88ffa2658e19bb2a2e55f5a86025;hb=63cd8a0bdb80c5d2c885e5205612dcd4bb956981;hp=f7bcae3897e8a1fc10f2c3eaf79b477dd964164f;hpb=42562fa3393aa54d1780a428b439cedcd3590a7b;p=functest.git diff --git a/functest/api/urls.py b/functest/api/urls.py index f7bcae389..0cc22f80f 100644 --- a/functest/api/urls.py +++ b/functest/api/urls.py @@ -25,8 +25,9 @@ URLPATTERNS = [ # GET /api/v1/functest/envs => GET environment Url('/api/v1/functest/envs', 'v1_envs'), - # POST /api/v1/functest/envs/action , {"action":"prepare"} - # => Prepare environment + # POST /api/v1/functest/envs/action + # {"action":"prepare"} => Prepare environment + # {"action":"update_hosts", "args": {}} => Update hosts info Url('/api/v1/functest/envs/action', 'v1_envs'), # GET /api/v1/functest/openstack/credentials => GET credentials @@ -62,5 +63,9 @@ URLPATTERNS = [ # GET /api/v1/functest/tasks/ # => GET the result of the task id - Url('/api/v1/functest/tasks/', 'v1_tasks') + Url('/api/v1/functest/tasks/', 'v1_task'), + + # GET /api/v1/functest/tasks//log + # => GET the log of the task + Url('/api/v1/functest/tasks//log', 'v1_task_log') ]