From ed70b5c6d6589e4e1ce80229612ea5b680736c4c Mon Sep 17 00:00:00 2001 From: ramkri123 Date: Sun, 25 Mar 2018 00:00:07 -0300 Subject: added healthcheck Issue-ID: OPTFRA-22 Change-Id: I783a597b81abd0027819fff0c103250e1e003c10 Signed-off-by: ramkri123 --- osdfapp.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/osdfapp.py b/osdfapp.py index 6854061..eb14530 100755 --- a/osdfapp.py +++ b/osdfapp.py @@ -93,6 +93,12 @@ def handle_data_error(e): return response +@app.route("/api/oof/v1/healthcheck", methods=["GET"]) +def do_osdf_health_check(): + """Simple health check""" + return "OK" + + @app.route("/api/oof/v1/placement", methods=["POST"]) @auth_basic.login_required def do_placement_opt(): -- cgit 1.2.3-korg