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 |