support-organizer/backend/fgo-request-manager/routes/version.py
2023-11-24 20:50:18 +01:00

13 lines
414 B
Python

from flask.views import MethodView
from ..config import APISettings
from ..models.interface import ApiVersionGet
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": APISettings.API_VERSION }