reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
marrs 2020-03-20T13:56:10.099900Z

@johan178 there are various swagger examples here: https://github.com/metosin/reitit/tree/master/examples. They should get you most of the way there.

plins 2020-03-20T15:16:05.100500Z

whats the best way to add websockets support while using reitit/

ikitommi 2020-03-20T16:40:18.102800Z

@plins just like with other routing libs, I recall Luminus template has web sockets, if not, the sente example is a good place to start

ikitommi 2020-03-20T16:41:49.103200Z

there is no reitit-based middleware / interceptor stack, so you need to encode/decode messages yourself, of by the ws-framework.

ikitommi 2020-03-20T16:42:58.103400Z

we have an in-house ws-impl that uses interceptors, could be integrated as a module to reitit at some point. But, not needed.

plins 2020-03-20T17:08:55.104800Z

@ikitommi regarding swagger kebab case converting, I have made a small gist that id like to transform into a PR, or at least an example in the official documentation https://gist.github.com/pablo-develop/76eb66f6ea9f4db19a86aadf59a4d188 do you have any inputs?

ikitommi 2020-03-24T19:54:18.123700Z

example (under examples) would be super.

plins 2020-03-24T19:58:40.124Z

thanks Ill see if I find better names and will create a PR

bartuka 2020-03-20T19:52:13.105200Z

how can I add a base URL to swagger?

bartuka 2020-03-20T19:52:19.105500Z

[ base url: ] is empty in my ui

bartuka 2020-03-20T20:10:44.105800Z

found it 😃