aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/api/ctl.py8
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)