ring-swagger & compojure-api
alice 2018-07-02T03:28:14.000031Z

Is compojure-api's only job making APIs, or can I use it to make the rest of my website as well?

alice 2018-07-02T03:28:33.000032Z

I'm giving it a look and I'm a little lost coming from Compojure

alice 2018-07-02T03:28:58.000052Z

The names are very close, but they seem pretty different 😅

ikitommi 2018-07-02T09:12:15.000261Z

@alice welcome! you can use c-api in all the places you would use compojure.

ikitommi 2018-07-02T09:13:09.000256Z

@andreasp1994 spec-tools does the spec=>swagger, see metosin/c2 repo for examples.

ikitommi 2018-07-02T09:15:01.000007Z

@metametadata the data should accumulate, so you can put the :responses to a root context, e.g. (api (context "" [] :responses {200 ...} ...))

ikitommi 2018-07-02T09:15:55.000210Z

@sidiv14.it haven't see such a tool, would be great if one existed.