String auth = Base64.getEncoder().encodeToString("admin:admin".getBytes()); CloseableHttpClient httpClient = HttpClients.createDefault();
HttpGet httpGet = new HttpGet("http://localhost:8090/rest/api/content/688131"); httpGet.addHeader("Authorization", "Basic " + auth);
CloseableHttpResponse response = httpClient.execute(httpGet);
HttpEntity entity = response.getEntity();
String strResult = EntityUtils.toString(entity);
ObjectMapper mapper = new ObjectMapper();
//JsonContentProperty content = mapper.readValue(strResult, JsonContentProperty.class);
Content content = mapper.readValue(strResult, Content.class);
Above code is not work because com.atlassian.confluence.api.model.content.Content is not match. Which entity is match? Should I have to customize the entity？
Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs