Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot GET / #6

Open
fweiss opened this issue Jun 1, 2017 · 1 comment
Open

Cannot GET / #6

fweiss opened this issue Jun 1, 2017 · 1 comment

Comments

@fweiss
Copy link

fweiss commented Jun 1, 2017

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.

@fweiss
Copy link
Author

fweiss commented Jun 3, 2017

I made some progress. The swagger-editor UI comes up when I git clone swagger-editor into node_modules. The swagger-editor npm package is missing index.html.

Doesn't seem like a good solution. Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant