diff --git a/oxdata/api/actions.py b/oxdata/api/actions.py index f80a29f..efca680 100644 --- a/oxdata/api/actions.py +++ b/oxdata/api/actions.py @@ -52,7 +52,7 @@ class ApiActions(dict): properties = {} def __init__(self): - def api(request): + def api(request, data): ''' returns list of all known api actions param data { @@ -76,7 +76,6 @@ class ApiActions(dict): } } ''' - data = json.loads(request.POST.get('data', '{}')) docs = data.get('docs', False) code = data.get('code', False) _actions = self.keys()