swagger-vue-api

Generate api for vue from swagger json or yaml file

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
swagger-vue-api
0.1.76 years ago6 years agoMinified + gzip package size for swagger-vue-api in KB

Readme

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 outdatatime.js | | -c CLASS | --class CLASS | class name | optional default is _api |