pedestal

Karthik 2024-07-06T18:57:56.022129Z

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.

hlship 2024-07-08T16:03:41.477859Z

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
Karthik 2024-07-06T19:53:43.780649Z

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.