This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-07-06
Channels
- # announcements (3)
- # biff (13)
- # cider (11)
- # clojure (4)
- # clojure-dev (6)
- # clojure-europe (96)
- # clojure-norway (14)
- # clojure-spec (1)
- # clojure-sweden (1)
- # clojurescript (7)
- # conjure (2)
- # core-logic (2)
- # events (1)
- # hyperfiddle (8)
- # introduce-yourself (9)
- # nbb (12)
- # off-topic (70)
- # pedestal (3)
- # releases (1)
- # squint (2)
- # tools-deps (20)
- # yamlscript (1)
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.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.
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