I have an API which I would like to display via Swagger UI. I do so by:
bp = Blueprint("api", __name__)
api = Api(bp)
@api.doc(
description="Description, I want to add schema here",
responses={200: "Success"},
)
def post(self):
""" Appears in Title of Swagger
Authorization: Bearer <auth-key>
"""
return jsonify(200)
Lets say I have the followinig Schema:
class SomeSchema(Schema):
id = fields.String(required=True)
Is there a way to display this schema automatically for swagger? For example I would like to fill in:
to have contain the fields automatically.
