Fork me on GitHub
#ring-swagger
<
2018-01-03
>
huima18:01:13

Hopefully this is a proper place to ask. I was wondering whether anyone had already implemented how to save swagger.json as a static file from the code. I took a look at how compojure-api handles it, and if I understoof correctly at api-function routes / paths data is created and that then gets used with swagger-docs to generate the swagger data. Has anyone else needed this kind of feature anywhere and perhaps implemented it already?

valtteri19:01:27

If you scroll up a bit (starting from December 26th) there’s discussion related to this which probably helps you forward.

wontheone121:01:13

If I understand correctly, now combination of cheshire/generate-string and maybe java io could do the job.

huima07:01:45

Yeah that part was not the problem. I was just wondering where to start to get the metadata of routes and their relevant swagger metadata in the handlers with :Body etc. metadata in place. Will try it in repl and find out.