Fork me on GitHub
#yada
<
2016-01-09
>
joshg07:01:31

@nha: figured it out; you have to implement the yada.request-body/process-request-body method for “application/json"

malcolmsparks22:01:10

@davesnowdon yes it does, look at the PUT in phonebook

malcolmsparks22:01:40

I'm currently on holiday. Normal service resumes Monday!

joshg23:01:25

@nha: to get output coercion to work, I also had to implement the yada.methods/PostResult protocol for clojure.lang.APersistentMap and clojure.lang.APersistentVector

joshg23:01:37

It would be useful if those method protocols had a default which just assoc’ed the value into the context’s response body

joshg23:01:54

So yada will automatically encode json output but not decode json input?