Skip to content

trioletas/swagger-editor-serve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swagger-editor-serve

Serve Swagger Editor

Installing

$ npm i swagger-editor-serve -S

Using

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

License

MIT

About

Fire up http server to serve Swagger Editor files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published