From: ramkri123 Date: Sun, 25 Mar 2018 03:00:07 +0000 (-0300) Subject: added healthcheck X-Git-Tag: v1.1.1~32 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=ed70b5c6d6589e4e1ce80229612ea5b680736c4c;p=optf%2Fosdf.git added healthcheck Issue-ID: OPTFRA-22 Change-Id: I783a597b81abd0027819fff0c103250e1e003c10 Signed-off-by: ramkri123 --- 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():