/** * Send a put request * @param url Url as string * @return response Response as string * @throws IOException */ public static String put(String url, String body) throws IOException { return put(url, body, null); }
Map<String, String> headers = getAuthorizationHeaders(); headers.put("Content-Type", "application/json"); String resp = HttpUtil.put(url, body, headers); ObjectNode updatedTask = mapper.readValue(resp, ObjectNode.class);
Map<String, String> headers = getAuthorizationHeaders(); headers.put("Content-Type", "application/json"); String resp = HttpUtil.put(url, body, headers); ObjectNode updatedEvent = mapper.readValue(resp, ObjectNode.class);