swagger-vue

1.0.3 • Public • Published

swagger-vue

Swagger to JS & Vue & Axios Codegen

Installation

npm install swagger-vue

Example

const swaggerGen = require('swagger-vue')
const jsonData = require('../api-docs.json')
const fs = require('fs')
const path = require('path')
 
let opt = {
  swagger: jsonData,
  moduleName: 'api',
  className: 'api'
}
const codeResult = swaggerGen(opt)
fs.writeFileSync(path.join(__dirname, '../dist/api.js'), codeResult)

Links

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i swagger-vue

Weekly Downloads

157

Version

1.0.3

License

MIT

Last publish

Collaborators

  • chenweiqun