borisirota / swagger-editor-server Goto Github PK
View Code? Open in Web Editor NEWswagger editor server that serves local file to the editor and update the file on every change
swagger editor server that serves local file to the editor and update the file on every change
Would you consider updating your config.json to set disableNewUserIntro=true. When you launch the tool via swagger-editor-server you always get the introduction screen.
https://github.com/swagger-api/swagger-editor/blob/master/docs/config.md#disablenewuserintro
sorry, i am not good at nodejs, so could you tell me how to run and use swagger-editor-server?
thank you
After upgrading node to a version that uses NPM 3 this no longer works as the swagger-editor dependency is installed flat.
My suggestion would be to add swagger-editor as a peer dependency, this way it would always be top level and then the path could be modified to reflect this. Otherwise a configuration parameter to set the location of swagger-editor is required.
npm ERR! peerinvalid The package swagger-editor does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants swagger-editor@^2.8.1
I'm trying to do API-first design for a REST web service. I'd like to simply drop in an npm like yours, and do editor.swagger.io-ish UI on my code base. https://github.com/fweiss/mocha-store
The swagger-editor-server docs seem a bit weak, in my opinion. I did create a two-line server.js, containing the two lines and pointing to my swagger source code. When I run it with node, a browser opens to /#/edit and displays "Cannot GET /". I suppose the static swagger-ui needs to be served statically? A working example would help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.