diff --git a/src/main/java/org/example/tampoposerverdtram/resources/DeletedFriendPair.java b/src/main/java/org/example/tampoposerverdtram/resources/DeletedFriendPair.java index 3c02b27..757bc8e 100644 --- a/src/main/java/org/example/tampoposerverdtram/resources/DeletedFriendPair.java +++ b/src/main/java/org/example/tampoposerverdtram/resources/DeletedFriendPair.java @@ -27,17 +27,11 @@ temp_json0.put("user0Id", user0Id); temp_json0.put("user1Id", user1Id); this.value = temp_json0; + String result = client.target("http://localhost:8080").path("/users/"+user0Id+"/friends").queryParam("deletedFriendPair", this.value.toString()).request().delete(String.class); + result = client.target("http://localhost:8080").path("/users/"+user1Id+"/friends").queryParam("deletedFriendPair", this.value.toString()).request().delete(String.class); Form form = new Form(); form.param("deletedFriendPair", this.value.toString()); Entity