This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-04
Channels
- # admin-announcements (9)
- # beginners (40)
- # boot (61)
- # cider (6)
- # cljsrn (5)
- # clojure (65)
- # clojure-gamedev (6)
- # clojure-greece (8)
- # clojure-ireland (1)
- # clojure-portugal (5)
- # clojure-russia (46)
- # clojure-uk (38)
- # clojurescript (177)
- # core-async (9)
- # cursive (17)
- # datomic (6)
- # dirac (8)
- # emacs (5)
- # error-message-catalog (8)
- # hoplon (248)
- # ldnclj (11)
- # ldnproclodo (1)
- # lein-figwheel (36)
- # leiningen (12)
- # mount (2)
- # off-topic (3)
- # om (26)
- # onyx (12)
- # perun (2)
- # planck (26)
- # re-frame (62)
- # reagent (55)
- # remote-jobs (2)
- # rethinkdb (1)
- # ring-swagger (14)
- # spacemacs (47)
- # untangled (69)
For compojure-api
, I assoc'ed some keys into request map using middleware. How do I access them in the response?
@quantisan: Just like with regular compojure, request as the third parameter: (GET "/path" request (ok {:value (:my-key request)}))
Should work, but you can only destructure known parameters (path, query, form at least), https://github.com/weavejester/compojure/wiki/Destructuring-Syntax#compojure-specific-destructuring
I'm based in Copenhagen, btw. Ping me if you guys are in town. I'll get you guys a beer.
@nnbosko: for some reason the comma-separated list coercion is disabled in ring-swagger, see https://github.com/metosin/ring-swagger/blob/master/src/ring/swagger/coerce.clj#L151. Maybe @juhoteperi remembers why. Anyway, you could pass the ids as query-params, that works.
@quantisan: cool! will remember the beer :)