This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-28
Channels
- # aleph (3)
- # beginners (10)
- # boot (135)
- # clara (2)
- # cljsjs (2)
- # cljsrn (1)
- # clojure (68)
- # clojure-austin (4)
- # clojure-france (2)
- # clojure-japan (1)
- # clojure-spec (30)
- # clojure-uk (11)
- # clojurescript (48)
- # component (65)
- # cursive (5)
- # datomic (40)
- # dirac (5)
- # emacs (3)
- # events (16)
- # funcool (2)
- # klipse (46)
- # lein-figwheel (2)
- # luminus (8)
- # off-topic (4)
- # om (7)
- # other-languages (4)
- # parinfer (21)
- # re-frame (15)
- # reagent (30)
- # ring (1)
- # ring-swagger (9)
- # rum (3)
- # specter (7)
- # test-check (8)
- # testing (5)
- # vim (21)
- # yada (4)
I'm trying to find in the documentation how to do coercion... but I'm not sure where to put the custom coercions.... any help?
@abarylko default coercions are in default-coercion-matchers
. I guess you have to modify those with your own coercions and pass it as the :coercion option. I'm on the phone and am not sure how to modify it exactly, but hope it helps
@abarylko you were asking about token auth, did you find an answer? I can't help but I'm curious what are you using exactly, is something like https://github.com/JarrodCTaylor/authenticated-compojure-api by any chance?
@abarylko not too much docs about custom coercion, but the tests should provide some docs: https://github.com/metosin/compojure-api/blob/master/test/compojure/api/coercion_test.clj
@tom currently, there is no code to handle batch requests. But it’s all Ring, so if there is/would be a batch-request handler for Ring, it could be used. You could ask on the #ring channel about this too?
@tap wiki would be the right place, there is the old README as a wiki-page, should be split into separate pages. Did few placeholders for candidates for separate pages: https://github.com/metosin/compojure-api/wiki