diff options
author | Alexander Kabui | 2022-02-01 11:34:00 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-02-02 10:59:34 +0300 |
commit | eaf06778297c4a8f240bba0f3b0dd6a4621f237f (patch) | |
tree | c9fcbf943969dcc5d38b1500286293c438e168f0 /gn3/api/ctl.py | |
parent | c315d3dcc67f9cbde7bef79845cc47bed0fc2b88 (diff) | |
download | genenetwork3-eaf06778297c4a8f240bba0f3b0dd6a4621f237f.tar.gz |
pep8 formatting
Diffstat (limited to 'gn3/api/ctl.py')
-rw-r--r-- | gn3/api/ctl.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gn3/api/ctl.py b/gn3/api/ctl.py index 0844c95..2157b24 100644 --- a/gn3/api/ctl.py +++ b/gn3/api/ctl.py @@ -1,7 +1,5 @@ """module contains endpoints for ctl""" -# so small - from flask import Blueprint from flask import request from flask import jsonify @@ -13,7 +11,11 @@ ctl = Blueprint("ctl", __name__) @ctl.route("/run_ctl", methods=["POST"]) def run_ctl(): - """endpoint to run ctl""" + """endpoint to run ctl + input: request form object + output:json object enum::(response,error) + + """ ctl_data = request.json (cmd_results, response) = call_ctl_script(ctl_data) |