I am trying to achieve this
Which is /delete/{id}
How do I do this in java?
String id = "123";
OkHttpClient client = new OkHttpClient();
RequestBody form = new FormBody.Builder()
.add("id", id)
.build();
Request request = new Request.Builder()
.url("http://localhost:3002/delete/")
.put(form)
.build();
client.newCall(request).execute();
Doesn't work. How do I add url parameters with this?