From ad79d50e3a70c0cf68a773c6dad06d27c043ca65 Mon Sep 17 00:00:00 2001 From: JackPlowman <62281988+JackPlowman@users.noreply.github.com> Date: Thu, 4 Apr 2024 12:03:13 +0100 Subject: [PATCH] Add test endpoint --- sandbox/api/app.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sandbox/api/app.py b/sandbox/api/app.py index 61acdf8..aefeee5 100644 --- a/sandbox/api/app.py +++ b/sandbox/api/app.py @@ -46,3 +46,13 @@ def related_persons() -> Union[dict, tuple]: except Exception as e: logger.error(e) return get_response("./api/responses/internal_server_error.json"), 500 + + +@app.route("/sandbox", methods=["GET"]) +def sandbox() -> dict: + """Sandbox API for GET /sandbox + + Returns: + dict: Response for GET /sandbox + """ + return {"message": "Sandbox API is running"}