2023-09-26 20:00:26 +00:00
|
|
|
from flask.views import MethodView
|
|
|
|
|
2023-11-24 19:50:18 +00:00
|
|
|
from ..config import APISettings
|
|
|
|
from ..models.interface import ApiVersionGet
|
2023-09-26 20:00:26 +00:00
|
|
|
from . import routes as blp
|
|
|
|
|
|
|
|
@blp.route("/version")
|
|
|
|
class ApiVersion(MethodView):
|
|
|
|
@blp.doc(summary="Get the REST interface version identification.")
|
|
|
|
@blp.response(200, ApiVersionGet, description="Successful operation")
|
|
|
|
def get(self):
|
2023-11-24 19:50:18 +00:00
|
|
|
return { "version": APISettings.API_VERSION }
|