From 8252374c2f165feea0f407b51deeb31930fb092e Mon Sep 17 00:00:00 2001 From: Linda Wang Date: Mon, 21 Aug 2017 03:24:28 +0000 Subject: Create API to update hosts info API: /api/v1/functest/envs/action METHOD: POST PARAMS: { "action": "update_hosts", "args": { "identity.ac.dz.com": "8.20.11.22", "image.ac.dz.com": "8.20.11.22" } } JIRA: FUNCTEST-856 Change-Id: Ifaf064110ade6e39189dd14b38c921d9e1c3568d Signed-off-by: Linda Wang --- functest/api/urls.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'functest/api/urls.py') diff --git a/functest/api/urls.py b/functest/api/urls.py index f7bcae38..59bf7d51 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 -- cgit 1.2.3-korg