ring-swagger & compojure-api
Andreasp1994 2018-06-21T13:25:37.000469Z

Hey I was wondering if there are any good open source projects built with compojure-api ?? 🙂

jdt 2018-06-21T15:01:00.000766Z

You looking for an endorsement or some sample code that uses it?

jdt 2018-06-21T15:01:34.000732Z

My company uses it for production APIs, but those are not open source repos.

jdt 2018-06-21T15:07:23.000467Z

New topic. In moving from compojure-api 1.2.0-alpha4 to 2.0.0-alpha20, I've got a broken API. The API :responses schema is (sweet/describe (s/pred bytes?) "Protocol buffer binary encoded data."). The HTTP client specifies an accept header of "appplication/msgpack". In my api options I have specified :format [(m/create (-> m/default-options (msgpack-format/with-msgpack-format)))]. However the API response is always application/json and so the clients attempt to unpack the expected msgpack response fails. Do I need to do one of the tricks in the Request and response coercion section of https://github.com/metosin/compojure-api/wiki/Migration-Guide-to-2.0.0? Or is it something else?

Andreasp1994 2018-06-21T15:43:52.000107Z

@dave.tenny some sample code that uses good practices for production 🙂

jdt 2018-06-21T17:05:47.000420Z

Hmmm, I'm guessing coercion is not the problem here, but I'm still stumped why I can't get "application/msgpack" packed content out of the API.