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

Generated HTML page looks nothing like example #97

Closed
tomrep opened this issue Aug 8, 2018 · 3 comments
Closed

Generated HTML page looks nothing like example #97

tomrep opened this issue Aug 8, 2018 · 3 comments

Comments

@tomrep
Copy link

tomrep commented Aug 8, 2018

Hi,

I'm trying to generate HTML for my swagger.json, but the page generated looks nothing like what I see in example. I also tried generating HTML from example json, but it still looks like styles are missing.

$ bootprint openapi http://petstore.swagger.io/v2/swagger.json target
Loading bootprint-openapi 1.1.0
Loading bootprint-json-schema 1.1.0
Loading bootprint-base 1.1.0
[ 'target/index.html',
'target/main.css',
'target/main.css.map',
'target/bundle.js',
'target/bundle.js.map' ]

this is what I see in console log
But result looks like this:

screen shot 2018-08-08 at 08 15 46

screen shot 2018-08-08 at 08 16 06

@nknapp
Copy link
Member

nknapp commented Aug 8, 2018

Which example do you mean? I mean: What is the example that looks different from your output? As far as I can see, the output looks good.

@tomrep
Copy link
Author

tomrep commented Aug 9, 2018

I was expecting styles and functionality that is shown here : http://petstore.swagger.io/ , but maybe I just misunderstood what the module does

@nknapp
Copy link
Member

nknapp commented Aug 10, 2018

Bootprint was meant more for a printable documentation, although I think no spec ever got printed.
But the goal was to generate docs that can be watched in the browser and send it to someone.

What you are looking for is swagger-ui, I believe.

@nknapp nknapp closed this as completed Oct 22, 2018
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

2 participants