在线编辑器地址 https://editor.swagger.io/
brew install swagger-codegen swagger-codegen generate -i https://ng.tyio.net/api -l html2
生成的 index.html 就是文档,详细使用方法参考 https://github.com/swagger-api/swagger-codegen 。
index.html