Closed GrinJ closed 2 years ago
So I founded how to solve this problem.
It is not elegant, but it works. All you need is to replace this
api.add_resource(User, "/user")
to this
api.add_resource(User, "/user")
app.add_url_rule("/user", "User.get", User.get, methods=["GET"])
And documentation and validation works well.
Describe the bug Is it possible to use this with Flask-Restful
To Reproduce Steps to reproduce the behavior:
Expected behavior So I want to add a validation to a class method, and it works, but it does not generate the doc. https://i.imgur.com/2ZNhw9U.png
Additional context So is it possible to do that?