I want to call webclient.delete(deleteBody)
similar to POST.
WebClient client = WebClient.create(getUrl());
client = client.type("application/json").accept("application/json");
HTTPConduit conduit = WebClient.getConfig(client).getHttpConduit();
conduit.getClient().setReceiveTimeout(getApiTimeout());
Response resp = client.post(postData);
but there is no method which takes deleteBody.
I even use webclient.invoke("DELETE", deletBody)
but this throws 500 HTTP error.
Here is my delete body:
{"password":"1ad1ad","username":11111111}
But I tried with curl
command for DELETE its working:
curl -q -H "Accept: application/json" -H "Content-type: application/json" -X DELETE -d @del.json http://d.eze.cc/api/pd/xxxxx/DEL001234/