Fork me on GitHub
#ring-swagger
<
2018-07-23
>
Andreasp199414:07:51

I see. Now everything make more sense! Thanks for your detailed answer.

Andreasp199414:07:42

So I managed to emit a swagger spec and mount it to an endpoint but I can't figure out how to get the swagger-ui working... do I have to setup the swagger ui resources first?

Andreasp199414:07:56

and then use the swagger-ui function?

ikitommi14:07:48

@andreasp1994 the ring-swagger-ui bundles the resources and the swagger-ui fn serves them from the classpath.

Andreasp199415:07:16

And ring-swagger-ui is integrated in ring-swagger so that means that I won't be needing any static resources however it doesn't work when I try without resources... for some reason swagger-ui does not serve the bundled resources

Andreasp199415:07:38

Please correct me if I am wrong

ikitommi15:07:47

you need both deps: metosin/ring-swagger and metosin/ring-swagger-ui.

ikitommi15:07:06

latter has the resources

Andreasp199422:07:10

Nice thank you very much!