This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-19
Channels
- # arachne (1)
- # beginners (108)
- # boot (50)
- # cljs-dev (7)
- # clojure (76)
- # clojure-ireland (1)
- # clojure-romania (1)
- # clojure-russia (7)
- # clojure-spec (33)
- # clojure-taiwan (1)
- # clojure-uk (36)
- # clojurescript (46)
- # core-async (13)
- # datomic (146)
- # defnpodcast (1)
- # editors (1)
- # garden (2)
- # hoplon (1)
- # jobs (1)
- # lumo (7)
- # off-topic (21)
- # om (9)
- # pedestal (1)
- # re-frame (25)
- # reagent (5)
- # specter (2)
- # testing (3)
- # unrepl (3)
- # untangled (9)
- # vim (1)
@facundo cool. Yes, you are going to need a macro. You could take a look into juxt/iota which implements something along those lines: https://github.com/juxt/iota/blob/master/src/juxt/iota.cljc#L54
Or you could just use Expectations and say something like
(defexpect application-crud
(expect (more-of {:keys [status body]
201 status
{:name “my-app”})
(POST “/api/v1/management/applications” {:name “my-app”})))
No need to write anything else yourself.