swagger-mysql-builder
v1.0.7
Published
A tool to build mysql schema by knex.js with swagger doc.
Downloads
3
Readme
A tool to build mysql schema by knex.js with swagger.json.
start
npm i swagger-mysql-builder --save
use
The demo can be find here.
...
let swdd = require('decorator-doc')
let smb = require('swagger-mysql-builder')
let db = knex({...})
smb(swdd(), db)
swdd.autoRoute(router)
...
decorator-doc
is a swagger generate, you can get it from here
api
- builder(Object: swaggerJSON, Object: db)
- swaggerJSON
required
general swagger.json. - db
required
knex instance.
- swaggerJSON