I want to use swagger-codegen to generate REST clients and possibly static HTML documentation.
However, swagger-codegen needs swagger.json for input.
I am aware, that I can get this from a running REST server equipped with Swagger.
But is there a way to obtain swagger.json directly from my Java code - i.e. to generate it with gradle from the source code - without the need to run the application in a web container, and pointing curl
or a browser to it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…