Fork me on GitHub
#ring-swagger
<
2023-02-24
>
Kira Sotnikov17:02:04

Hi guys, I'm confused a bit. I replaced compojure.core with compojure-api and got next behaviour for POST requests compojure-api -

BODY  #object[org.eclipse.jetty.server.HttpInputOverHTTP 0x61ce0f6d HttpInputOverHTTP@61ce0f6d[c=593,q=0,[0]=null,s=STREAM]]
compojure.core
BODY {:id <ID> :name NAME}
I don't understand why the compojure-api gets the POST query with JSON as FILE Upload the curl I'm using for requests curl -i -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "x-api-key: APIKEY " --data {JSON DATA} localhost:3000/endpoint Any thoughts?