This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-12
Channels
- # alda (3)
- # beginners (17)
- # boot (157)
- # cider (15)
- # cljs-dev (30)
- # cljsjs (4)
- # cljsrn (5)
- # clojure (70)
- # clojure-austin (3)
- # clojure-canada (2)
- # clojure-colombia (1)
- # clojure-czech (1)
- # clojure-dev (27)
- # clojure-greece (34)
- # clojure-japan (6)
- # clojure-russia (114)
- # clojure-sg (3)
- # clojure-uk (8)
- # clojurescript (63)
- # cursive (9)
- # datomic (40)
- # devcards (11)
- # euroclojure (4)
- # events (8)
- # hoplon (61)
- # incanter (1)
- # instaparse (16)
- # jaunt (6)
- # jobs (6)
- # jobs-discuss (52)
- # ldnclj (1)
- # leiningen (2)
- # off-topic (3)
- # om (73)
- # onyx (101)
- # overtone (25)
- # re-frame (18)
- # reagent (6)
- # ring (7)
- # ring-swagger (36)
- # spacemacs (5)
- # sydney (1)
- # untangled (41)
- # yada (6)
hello. I’m trying to convert a simple compojure api to compojure-api. I’m unable to get swagger to turn on.
Try removing :return nil
@virmundi: api
already wraps the routes in api-middleware so you have dupliate middlewares currently
the GET in the example works. This means my auth token is processed properly and the path param is getting fixed up.
Try posting to /accounts/
Schema for the input is a compound schema. By that I mean that I’m referencing the NewProfile schema within the NewAccount schema. Is that possible?
In the first example (there are two), I have (api..) wrap the post. Do I have to wrap it externally too?
I think I’ve got something setup wrong. I looked at the other route for the GET. I noticed that I used compojure destructuring on the path, not compojure-api. When I switch, the GET fails now with missing key
nil-body indicates that a) the is no body (e.g. Bad content-type) b) someone has slurped the body and hasn't parsed the json body into body params
Is there a tutorial for using this with buddy auth? That’s the only other middleware I’m using.
woot. got it. Context: this was a compojure app getting converted to compojure-api for all it’s goodness. Issue: I didn’t update the middleware level to use api over routes