Skip to main content
removed deprecated tag [delete] as part of a slow burnination
Source Link

I am trying to use DELETE mehodmethod of HttpMethod. The code that I am using for that is

response = restTemplate.exchange(url, HttpMethod.DELETE, requestEntity, Response.class); 

I am also using JacksonJson for mapping json. The delete functionality returns the json which should be mapped to Response class. But calling the above line doesn't works and gives internal server error with 500 as response code. But, the same API does work with RESTClient in the browser so I guess there is something that I am not doing correctly.

Hope to get a quick respons on this.

I am trying to use DELETE mehod of HttpMethod. The code that I am using for that is

response = restTemplate.exchange(url, HttpMethod.DELETE, requestEntity, Response.class); 

I am also using JacksonJson for mapping json. The delete functionality returns the json which should be mapped to Response class. But calling the above line doesn't works and gives internal server error with 500 as response code. But, the same API does work with RESTClient in the browser so I guess there is something that I am not doing correctly.

Hope to get a quick respons on this.

I am trying to use DELETE method of HttpMethod. The code that I am using for that is

response = restTemplate.exchange(url, HttpMethod.DELETE, requestEntity, Response.class); 

I am also using JacksonJson for mapping json. The delete functionality returns the json which should be mapped to Response class. But calling the above line doesn't works and gives internal server error with 500 as response code. But, the same API does work with RESTClient in the browser so I guess there is something that I am not doing correctly.

Source Link
thefrugaldev
  • 1.6k
  • 4
  • 18
  • 38

HttpMethod.Delete not working with RestTemplate of Spring-Android

I am trying to use DELETE mehod of HttpMethod. The code that I am using for that is

response = restTemplate.exchange(url, HttpMethod.DELETE, requestEntity, Response.class); 

I am also using JacksonJson for mapping json. The delete functionality returns the json which should be mapped to Response class. But calling the above line doesn't works and gives internal server error with 500 as response code. But, the same API does work with RESTClient in the browser so I guess there is something that I am not doing correctly.

Hope to get a quick respons on this.