support-organizer/backend/src/routes/version.py

13 lines
431 B
Python
Raw Normal View History

2023-09-26 20:00:26 +00:00
from flask.views import MethodView
from config.api_settings import DefaultSettings
2023-10-02 13:29:19 +00:00
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):
return { "version": DefaultSettings.API_VERSION }