support-organizer/backend/fgo_request_manager/routes/openapi.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
400 B
Python

from flask import redirect, url_for
from flask.views import MethodView
from ..models.interface import OpenAPIGet
from . import routes as blp
@blp.route("/openapi")
class ApiVersion(MethodView):
@blp.doc(summary="Get the OpenAPI spec as a JSON.")
@blp.response(200, OpenAPIGet, description="Successful operation")
def get(self):
return redirect(url_for('api-docs.openapi_json'))