npm/cnpm install yapi-quicktype --save / yarn add yapi-quicktype
create yapi yapi-quicktype.config.js(or ts) In your project root directory or cmd input
// package.json
"scripts": {
"type": "yapi-quicktype"
}
key | require | default | type | discribe |
---|---|---|---|---|
true | string | yapi account | ||
password | true | string | yapi password | |
baseURL | true | string | yapi domain name | |
all | false | false | boolean | completed api |
limit | false | 1000 | number | request page size |
taskLimit | false | 6 | number | number of concurrent requests |