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

A way to separate the UI into header, css, javascript, body #658

Closed
ignatandrei opened this issue Feb 18, 2016 · 4 comments
Closed

A way to separate the UI into header, css, javascript, body #658

ignatandrei opened this issue Feb 18, 2016 · 4 comments

Comments

@ignatandrei
Copy link

I need for Swashbuckle to have the same layout as ASP.NET MVC layout file.
Could you think for a way to separate the UI into header, css, javascript, body ?
It will be helpful for https://github.com/ignatandrei/Swashbuckle.MVC
Thank you

@domaindrivendev
Copy link
Owner

Can't you just serve up your own index.html as an MVC vie?

@domaindrivendev
Copy link
Owner

That is, create an MVC route at "/swagger/index", a controller action and a view that is your own version of index.html. So long as u include the same assets and the JS to init SwaggerUi it should be fairly simple - unless I'm missing something?

@ignatandrei
Copy link
Author

I do not want every time you come with new asserts( js, css, and so on) to modify a component (https://github.com/ignatandrei/Swashbuckle.MVC )
So , if I could have this separation , I could include in my project ( that, practically, tries to replicate the layout of the site AND including Swashbuckle)

@domaindrivendev
Copy link
Owner

This seems like an overly complex requirement to bake into Swashbuckle. Bare in mind that SB is first and foremost a Swagger JSON generator. It leverages swagger-ui and embeds it to provide an awesome UI experience. There's some plumbing to package this up nicely but other than that I'm happy to rely on the Swagger guys for UI.

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