Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3683

Spring Rest Template Put method is void, why?

$
0
0

Im using Spring Rest Template for Android, and am going to use the PUT method to update an method. But surprisingly the PUT methods ofter doesnt support parsing the result object, they are just void, how come? My understanding of proper REST support is that the updated object should be returned. Whats the rational from Spring`s side to do it like this?

2.5.6 HTTP PUT

public void put(String url, Object request, Object... urlVariables) throws RestClientException;public void put(String url, Object request, Map<String, ?> urlVariables) throws RestClientException;public void put(String url, Object request, Map<String, ?> urlVariables) throws RestClientException;

http://docs.spring.io/spring-android/docs/1.0.2.BUILD-SNAPSHOT/reference/html/rest-template.html


Viewing all articles
Browse latest Browse all 3683

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>