swagger-vue-api
v0.1.7
Published
Generate api for vue from swagger json or yaml file
Downloads
64
Maintainers
Readme
Swagger vue api generator
inspired by https://github.com/sonrac/swagger-vue-doc-generator
Install
npm install --save-dev swagger-vue-apiGenerate api:
node ./node_modules/swagger-vue-api/script.js -s <swagger json or yaml file> Arguments description
| Argument | Alias | Description | Notes |
| ----------- | ----------------- | -------------------------------- | -------------------------------------- |
| -h | --help | Show this help message and exit. | [optional] |
| -v | --version | Show this help message and exit. | [optional] |
| -s SORUCE | --sorece SOURCE | swagger json / yaml file. | required |
| -o OUT | --out OUT | output js file. | [optional] default is out_data_time.js |
| -c CLASS | --class CLASS | class name | [optional] default is _api |
