From eaf06778297c4a8f240bba0f3b0dd6a4621f237f Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Tue, 1 Feb 2022 11:34:00 +0300 Subject: pep8 formatting --- gn3/api/ctl.py | 8 +++++--- 1 file 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) -- cgit v1.2.3