Fork me on GitHub
#ring-swagger
<
2017-09-04
>
buzzdan07:09:26

hi all 🙂 i've just started an http-kit project with lein template what's the easiest way to integrate swagger into it? do note i'm a clojure newbie 🙂

ikitommi07:09:26

@buzzdan you could use one of the higher level web libs, which extract swagger-stuff from schema or spec models. There is a list of libs in the ring-swagger readme. I think the smallest working sample is via lein new compojure-api my-api

buzzdan09:09:25

@ikitommi thanks for the quick reply is composure-api higher level than http kit or just another http lib?

ikitommi09:09:50

http-kit is a web server (like jetty or tomcat), compojure api add things like model validation, exception handling and request formatting. compojure-api needs a web server, which can be http-kit, immutant, jetty, netty, aleph, weblogic etc.

ikitommi09:09:28

you can definetely do swagger with plain http-kit, but need to build the validations etc. by yourself.