I have an existing written application where the APIs are written in following way:
@app.route('/')
def hello():
return "Hello World":
I want to generate the Swagger documentation from this type of APIs. So far, I've tried few options but most of them generate documents from yml files or yml strings in docstring of a particular method.
I would like to use annotation based approach. There are few libraries which do that but they need to have class for each method which we don't have in code (and changing all of the code is not possible)
Can anybody give me some pointers? What do you use in your projects?