Upload Swagger to Yapi.
English | 简体中文
go install github.com/leslieleung/yaag@latest
You can either copy example/yaag.yaml
to your project root or
simply use yaag -init
to create one.
docDir: "" # the directory where you want to store the swagger.json
mergeMode: "" # the mergeMode of Yapi, see http://yapi.smart-xwork.cn/doc/openapi.html
swagGeneral: "" # the general API annotations, default to main.go
yapiUrl: "" # url to yapi
yapiToken: "" # token to yapi
go install github.com/swaggo/swag/cmd/swag@latest
For more details, see swaggo/swag .
Usage of yaag:
-docDir string
path to swagger.json
-init
init
-mergeMode string
merge mode
-upload
upload only, no swag generate