ring-swagger

ring-swagger & compojure-api
mll 2020-03-25T05:28:24.001700Z

Hi all! I have a project in mind - given an xml file describing API, i want to create REST endpoints and swagger documentation. Can this be done using compojure-api? I have a fear that heavy usage of macros in this library could make my automatic approach unhandy.

mll 2020-03-25T05:28:59.002200Z

I already have spec created via the xml file as well

mll 2020-03-25T05:29:11.002500Z

can i just plug the spec somehow into compojure-api?

ikitommi 2020-03-25T05:57:02.004800Z

@mll I would use #reitit for any generation instead. The route definitions are plain data, so much easier for that use case.

mll 2020-03-25T09:21:25.006200Z

Thanks @ikitommi. I'll try it. Itr's just that i have been using compojure-api for some time and i have all the edge cases covered, wheras with reitit it would be learning all the stuff again. But maybe it's worth it, data is better than macros.