diff options
| author | leonoverweel <l.overweel@gmail.com> | 2017-04-01 20:40:33 +0200 |
|---|---|---|
| committer | leonoverweel <l.overweel@gmail.com> | 2017-04-01 20:40:33 +0200 |
| commit | 5b88d7f1af2ba3d3506fbb3c6319ccf3df0d4380 (patch) | |
| tree | 3adf72ac1cf46a9e5f9680c28fbe5b48e121e62e | |
| parent | 4ab2280c7282944997a7d68414761399e5955e89 (diff) | |
Add body parameter parsing
| -rw-r--r-- | main.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -115,12 +115,15 @@ def api_call(version, endpoint_path): query_parameters[param] = int(query_parameters[param]) except: pass + + body_parameters = json.loads(request.get_data()) # Create and call request message = { 'id': 0, 'method': request.method, 'parameters': { + 'body': body_parameters, 'path': path_parameters, 'query': query_parameters }, |
