Change wrong url (setInput to addFriend) on Client userService

This commit is contained in:
Merel Steenbergen
2019-03-26 13:52:13 +00:00
parent 1668731624
commit b1f3725f71

View File

@@ -99,7 +99,7 @@ public class UserService {
public String addFriend(String name, String friend) { public String addFriend(String name, String friend) {
HttpHeaders headers = new HttpHeaders(); HttpHeaders headers = new HttpHeaders();
headers.set("Accept", MediaType.APPLICATION_JSON_VALUE); headers.set("Accept", MediaType.APPLICATION_JSON_VALUE);
UriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl("http://localhost:8080/setInput") UriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl("http://localhost:8080/addFriend")
.queryParam("name", name) .queryParam("name", name)
.queryParam("friend",friend); .queryParam("friend",friend);
HttpEntity<?> entity = new HttpEntity<>(headers); HttpEntity<?> entity = new HttpEntity<>(headers);