support-organizer/backend/fgo_request_manager/routes/version.py
Firq 03901e1d12
All checks were successful
/ build:package (push) Successful in 11s
/ backend-pylint (push) Successful in 21s
updated package to conform to pylint
2023-12-21 17:11:47 +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 }