I'm currently trying to make a PUT call to my Gemfire Cache test enviroment https://gemfire.docs.pivotal.io/95/geode/rest_apps/put_update_data.html
I've tried following a template like so
RestTemplate restTemplate = new RestTemplate();
String url = "http://localhost:8080/spring-rest/data/putdata/{id}/{name}";
Map<String, String> map = new HashMap<String, String>();
map.put("id", "100");
map.put("name", "Ram");
Address address = new Address("Dhananjaypur", "Varanasi","UP");
restTemplate.put(url, address, map);
}
Where in my case would it look something like this?
RestTemplate restTemplate = new RestTemplate();
String url = "gemfire.com/gemfire-api/v1/{region}/{key};
Map<String, String> map = new HashMap<String, String>();
map.put("region", "1");
map.put("key", "testKey");
restTemplate.put(url, "testStringtoPut", map);
}
This template leads into a 404 not found error for me, can someone provide an insight on a proper method of doing this?