I have to call a REST web-service and I am planning to use Rest Template.
I looked at examples on how to make a GET request but I don't really understand how to use
the getForObject
method
In my case
request is a string
response=is an arraylist<URI>
I have create a class named ObjectExchanged
public class ObjectExchanged {
@JsonProperty
String request;
ArrayList<URI> response;
}
Then
getRestTemplate()).getForObject(URL, ObjectExchanged.class, ??);
What Should I put in the third field