weapp-openapi-gen
v0.0.1
Published
An OpenAPI 3 codegen for weapp
Downloads
2
Readme
weapp-openapi-gen
该项目用于从 OpenApi 3 specification. 生成微信小程序的类和请求代码。
运行
npm install -g weapp-openapi-gen
// input也可以为地址
weapp-openapi-gen --input my-api.yaml --output my-app/miniprogram/service/api
该操作将解析 my-api.yaml
生成生产环境代码到目录 my-app/miniprogram/service/api
.