import hu.szit.ResClient; public class UseResclient { public static void get() { String url = "https://jsonplaceholder.typicode.com/users"; ResClient client = new ResClient(); String res = client.get(url); System.out.println(res); } public static void post() { String url = "https://jsonplaceholder.typicode.com/users"; ResClient client = new ResClient(); String body = "{ \"name\": \"John\", \"age\": 30 }"; String res = client.post(url, body); System.out.println(res); } public static void put() { String url = "https://jsonplaceholder.typicode.com/users/1"; ResClient client = new ResClient(); String body = "{ \"name\": \"John\", \"age\": 30 }"; String res = client.put(url, body); System.out.println(res); } public static void delete() { String url = "https://jsonplaceholder.typicode.com/users/1"; ResClient client = new ResClient(); String res = client.delete(url); System.out.println(res); } }