swagger-vue-api

0.1.7 • Public • Published

Swagger vue api generator

inspired by https://github.com/sonrac/swagger-vue-doc-generator

Install

npm install --save-dev swagger-vue-api

Generate 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

Package Sidebar

Install

npm i swagger-vue-api

Weekly Downloads

1

Version

0.1.7

License

MIT

Unpacked Size

19.9 kB

Total Files

13

Last publish

Collaborators

  • wangtf