Merge "test_tg_rfc2544_trex: speedup unittest, set time.sleep(0)"
[yardstick.git] / api / __init__.py
index dda12aa..3195c97 100644 (file)
@@ -34,6 +34,7 @@ class ApiResource(Resource):
         except KeyError:
             pass
 
+        args.update({k: v for k, v in request.form.items()})
         LOG.debug('Input args is: action: %s, args: %s', action, args)
 
         return action, args
@@ -57,9 +58,9 @@ class ApiResource(Resource):
 
 class Url(object):
 
-    def __init__(self, url, endpoint):
+    def __init__(self, url, target):
         super(Url, self).__init__()
         self.url = url
-        self.endpoint = endpoint
+        self.target = target
 
 common_utils.import_modules_from_package("api.resources")