From 5764203232fb00b383e5111bb25090aece0c8533 Mon Sep 17 00:00:00 2001 From: Carlos Tello Date: Wed, 7 Oct 2026 18:05:52 -0300 Subject: [PATCH] fix(api): bind version and health endpoints to app.__version__ --- backend/app/routes/api/openapi.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/app/routes/api/openapi.py b/backend/app/routes/api/openapi.py index e22d8ca..7df4470 100644 --- a/backend/app/routes/api/openapi.py +++ b/backend/app/routes/api/openapi.py @@ -241,12 +241,14 @@ def get_openapi_spec(): """Serves the OpenAPI 3.0 specification for Schemathesis / DAST and Swagger UI.""" return jsonify(OPENAPI_SPEC) +from app import __version__ + @api_openapi_bp.route('/version', methods=['GET']) def get_api_version(): """Returns the backend API version information.""" return jsonify({ "name": "Edu-Space REST API", - "version": "3.3.0", + "version": __version__, "status": "healthy" }), 200 @@ -255,5 +257,5 @@ def get_api_health(): """Liveness probe for backend API.""" return jsonify({ "status": "ok", - "version": "3.3.0" + "version": __version__ }), 200