Fork me on GitHub
#ring-swagger
<
2018-07-02
>
alice03:07:14

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

alice03:07:33

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

alice03:07:58

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

ikitommi09:07:15

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

ikitommi09:07:09

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

ikitommi09:07:01

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

🙏 4
ikitommi09:07:55

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