diff --git a/vtaskr/base/config.py b/vtaskr/base/config.py index e978459f..dc8a0c1f 100644 --- a/vtaskr/base/config.py +++ b/vtaskr/base/config.py @@ -3,6 +3,7 @@ from vtaskr.libs.secutity.utils import file_to_base64 APP_NAME = "vtaskr" +VERSION = "1.1.0" # Validators config PASSWORD_MIN_LENGTH = 10 diff --git a/vtaskr/base/hmi/flask/routes.py b/vtaskr/base/hmi/flask/routes.py index 051280d0..bd3867f2 100644 --- a/vtaskr/base/hmi/flask/routes.py +++ b/vtaskr/base/hmi/flask/routes.py @@ -2,7 +2,7 @@ from flask import Blueprint, jsonify, render_template -from vtaskr.base.config import AVAILABLE_LANGUAGES +from vtaskr.base.config import AVAILABLE_LANGUAGES, VERSION from vtaskr.libs.flask.utils import ResponseAPI from vtaskr.libs.openapi.base import openapi @@ -17,7 +17,7 @@ @base_bp.route("/", methods=["GET"]) def hello(): """Just a logo displayed to curious users""" - return render_template("home.html") + return render_template("home.html", version=VERSION) @base_bp.route("/languages", methods=["GET"]) diff --git a/vtaskr/base/hmi/flask/templates/home.html b/vtaskr/base/hmi/flask/templates/home.html index b8da8e52..79f69e97 100644 --- a/vtaskr/base/hmi/flask/templates/home.html +++ b/vtaskr/base/hmi/flask/templates/home.html @@ -14,6 +14,7 @@
Logo vTaskr +
v{{ version }}
diff --git a/vtaskr/libs/openapi/api_registry.py b/vtaskr/libs/openapi/api_registry.py index e7354efb..29f4378b 100644 --- a/vtaskr/libs/openapi/api_registry.py +++ b/vtaskr/libs/openapi/api_registry.py @@ -2,7 +2,7 @@ class OpenApiRegistry: """ A simple class to register OpenApiv3 elements - https://spec.openapis.org/oas/v3.0.3 + https://spec.openapis.org/oas/v3.1.0 https://swagger.io/specification/ Validator: https://www.postman.com/ """ diff --git a/vtaskr/libs/openapi/base.py b/vtaskr/libs/openapi/base.py index c20a6670..62fcd700 100644 --- a/vtaskr/libs/openapi/base.py +++ b/vtaskr/libs/openapi/base.py @@ -15,7 +15,7 @@ "name": "LGPL v3", "url": "https://www.gnu.org/licenses/lgpl-3.0.en.html", }, - "version": "1.0.0", + "version": "1.1.0", } openapi.register_infos(infos)