2.0.1 • Published 7 years ago
swagger-editor-serve v2.0.1
swagger-editor-serve
Serve Swagger Editor
Installing
$ npm i swagger-editor-serve -SUsing
Default Configuration
// starts the server and returns a promise that yields editor url object
const serve = require('./index');
serve()
.then(c => console.log(c));Configuration Override
const serve = require('./index');
serve({
editorPath: '../node_modules/swagger-editor-dist',
serverUrl: {
port: 9000
}
}).then(c => console.log(c));Node Compatibility
Requires Node >= 8