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

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

Comments

Projects
None yet
2 participants
@ignatandrei

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

This comment has been minimized.

Show comment
Hide comment
@domaindrivendev

domaindrivendev Feb 19, 2016

Owner

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

Owner

domaindrivendev commented Feb 19, 2016

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

@domaindrivendev

This comment has been minimized.

Show comment
Hide comment
@domaindrivendev

domaindrivendev Feb 19, 2016

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?

Owner

domaindrivendev commented Feb 19, 2016

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

This comment has been minimized.

Show comment
Hide comment
@ignatandrei

ignatandrei Feb 23, 2016

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)

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

This comment has been minimized.

Show comment
Hide comment
@domaindrivendev

domaindrivendev Mar 30, 2016

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.

Owner

domaindrivendev commented Mar 30, 2016

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