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.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
I got it working https://codeberg.org/injee/injee/src/commit/177912e094b3eadb8803baf83c0175a7236d5ff0/src/injee/api.clj Thanks to any one who. tried to answer me.