Dashboard with Network and Platform NFVi metrics
[yardstick.git] / api / __init__.py
index dda12aa..3235022 100644 (file)
@@ -34,18 +34,18 @@ class ApiResource(Resource):
         except KeyError:
             pass
 
-        LOG.debug('Input args is: action: %s, args: %s', action, args)
+        args.update({k: v for k, v in request.form.items()})
 
         return action, args
 
     def _get_args(self):
         args = common_utils.translate_to_str(request.args)
-        LOG.debug('Input args is: args: %s', args)
 
         return args
 
-    def _dispatch_post(self):
+    def _dispatch_post(self, **kwargs):
         action, args = self._post_args()
+        args.update(kwargs)
         return self._dispatch(args, action)
 
     def _dispatch(self, args, action):
@@ -57,9 +57,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")