Fork me on GitHub
#ring-swagger
<
2018-06-21
>
Andreasp199413:06:37

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

jdt15:06:00

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

jdt15:06:34

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

jdt15:06:23

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?

jdt17:06:47

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.

Andreasp199415:06:52

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