Fork me on GitHub
#reitit
<
2020-03-20
>
marrs13:03:10

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

plins15:03:05

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

ikitommi16:03:18

@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

ikitommi16:03:49

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

ikitommi16:03:58

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

plins17:03:55

@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?

ikitommi19:03:18

example (under examples) would be super.

plins19:03:40

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

bartuka19:03:13

how can I add a base URL to swagger?

bartuka19:03:19

[ base url: ] is empty in my ui

bartuka20:03:44

found it 😃