Skip to content

swagger editor server that serves local file to the editor and update the file on every change

Notifications You must be signed in to change notification settings

oanylund/swagger-editor-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Install

npm install oanylund/swagger-editor-server --save

#swagger-editor-server swagger editor server that serves local file to the editor and update the file on every change

Example

    var editor = require("swagger-editor-server")

##editor.edit(swaggerFile, [swaggerPort]) gives path for you to insert in browser to live edit of the swagger api file

Params

  • swaggerFile string - the path to the swagger api file
  • [swaggerPort=3000] number - the port the server will listen on

Example

    editor.edit(swaggerFile, 3000)

Output

Swagger editor started.
Open browser, paste this URL and start working: http://192.168.0.109:3000/#/edit

About

swagger editor server that serves local file to the editor and update the file on every change

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%