z0mt3c / hapi-swaggered-ui

An easy swagger-ui drop-in plugin for hapi (to be used with hapi-swaggered).
39 stars 31 forks source link

Is there a way to use custom UI? #10

Closed zachguo closed 9 years ago

zachguo commented 9 years ago

like this one https://github.com/jensoleg/swagger-ui. Which parts of the hapi-swaggered-ui codes should I change?

Thanks for your amazing work by the way.

z0mt3c commented 9 years ago

Hm in case of a fork it would be the swagger-ui dependency as well as the templates/index.hbs i guess. But i would love to find a way which is more convenient then keeping a fork in sync. Any ideas?

zachguo commented 9 years ago

I found it's easier to host this fork of swagger-ui separately, using the JSON generated by hapi-swaggered. Probably there's no easy solution unless swagger-ui makes itself themable.