Fork me on GitHub
#ring-swagger
<
2017-03-27
>
borkdude15:03:24

How can I add a content format to a compojure-api endpoint? I want to add “application/graphql"

borkdude15:03:46

I can look at the accept header, but then the swagger endpoint probably won’t show it

mrchance15:03:09

@ikitommi Sorry for leaving abruptly the other day, I was called away. The clojure.tools.logging issue we talked about seems to produce actual bugs, my coworker created a ticket here: https://github.com/metosin/compojure-api/issues/288

ikitommi16:03:36

@borkdude you can add :produces & :consumes (or raw swagger data via :swagger) to it. e.g. :consumes #{"application/graphql"}. This is only for docs.