Fork me on GitHub
#pedestal
<
2024-07-06
>
Karthikeyan A K18:07:56

I am writing a simple Clojure app https://codeberg.org/injee/injee/src/commit/4efee04b6fb0ccbdf69e89826aa681f9d24b303c/src/injee/api.clj , but I am unable to get post params sent like this:

curl -X POST  \
     -H "Content-Type: application/json" \
     -d '{"key1": "value1", "key2": "value2"}'
If some one can throw light what I am doing wrong, it will be helpful.

hlship16:07:41

Believe it or not, I got tripped up on this myself a few weeks back, so I wrote this documentation: http://pedestal.io/pedestal/0.7/reference/parameters.html#_body_parameters

👍 1