1.0.2 • Published 2 years ago

swagger-doc-update v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

swagger-doc-update

获取 Swagger JSON 并保存至本地项目中

使用

npm i -D swagger-doc-update

package.json 添加字段(以下是默认值):

"docUpdate": {
  "host": "",  // 服务器地址 必填 例: http://127.0.0.1
  "output": "swagger.json", // 保存文件名 选填
  "suffix": "/v2/api-docs", // json url路径 选填
  "timeout": 30000, // 超时时间 选填
  "versionUpdate": false, // 版本号跟随 Swagger 选填
}

添加 scripts

"scripts": {
  "update": "doc-update"
}
1.0.2

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago