duct

javi 2019-05-08T09:47:58.035200Z

@jahson done!! thanks for the pointers. I was nearly there but didn't know where to apply the middleware. :duct.handler/root was the place. Looking at merge-configs now to better understand the merging sequence of configs.

๐Ÿ‘ 1
javi 2019-05-08T10:59:19.038400Z

another question, so ... at a high level...to integrate ring-swagger, I would have to add schema to the routes and then create a module that process the config before the system is initiated and generate the swagger json from the handlers in the config. is that the process? thanks

jeffmad 2019-05-08T16:38:59.038800Z

@fj.abanses if you figure out ring-swagger I would love to see how you did it.

javi 2019-05-08T16:45:43.042300Z

@jeffmad will do! As a bit of an experiment i figured that as we already have the routes in the config, getting those and rendering them and adding some buttons to make rest calls is quite easy.

jeffmad 2019-05-08T16:49:29.043400Z

I like what metosin did here with pedestal - swagger, but iโ€™d like to get it all working with integrant, just have not had the slack time to really start tinkering https://github.com/metosin/reitit/tree/master/examples/pedestal-swagger

javi 2019-05-08T16:59:38.047100Z

i am using the swagger-ui that comes with luminus/compojure-api, but i am extending it for an editor i am creating to auto generate views/reagent components and i ll be integrating some form of generative testing with the route specs... I want to figure out the swagger stuff but something tells me that using the config as the source of info i could do so much more...

ikitommi 2019-05-08T18:43:40.051200Z

hi (from metosin), there is also a ring example with reitit + swagger. We are using reitit with integrant in most of the projects - I guess there isnโ€™t a public sample project out there, but the ring version of the swagger-app should just work https://github.com/metosin/reitit/tree/master/examples/ring-swagger.

๐Ÿ‘ 3
ikitommi 2019-05-08T18:44:49.052500Z

also, the closed-spec validation works nicely with intgrant spec validation - you catch extra & misspelled keys..

ikitommi 2019-05-08T18:46:10.052600Z

wrote an issue to make an example: https://github.com/metosin/reitit/issues/265