mock-swagger-koa-generator
v0.1.4
Published
根据swagger接口文档生成koa mock服务端代码
Downloads
5
Maintainers
Readme
swagger-koa-generator (前端MOCK服务生成器)
# 下载依赖
yarn
# 本地运行
yarn dev
示例
yarn dev
#? Enter your projectName: (输入项目名)
例如:test
#? Enter your workspace(project dir):(输入项目路径)
例如:E:\testWorkspace (最后生成的项目路径是E:\testWorkspace\test)
#? Enter your project swagger url:(输入swagger文档地址,注意有/doc.html)
例如:http://192.168.1.222:8081/doc.html
#? Use global prefix(/api)? (Y/n)(接口是否全局/api)
示例(无交互)
mock-swagger-koa-generator g -ptest -wE:\testWorkspace -shttp://192.168.1.222:8081/doc.html