Add this with curl:
-H "Content-Type: application/json"
Another thing, you are possibly running this from windows pc. So wrap your json with double quote("
) instead of single('
)
-d "{\"latitude\": \"2.3433\", \"longtitude\": \"23.2233\", \"meterRadius\":\"5\"}"
Notice, I have escaped the inner quotes with \
Finally, use -v
param with your curl. It will help you to see what curl is sending to the server.