A java client for the Confuence REST API.
implementation("io.github.primelib:confluence4j-rest-v2:<latestVersion>")
Click to view instructions for other build tools.
ConfluenceRESTV2ConsumerApi client = ConfluenceRESTV2Factory.create(spec -> {
spec.baseUrl("https://templates.atlassian.net/wiki/api/v2");
spec.api(ConfluenceRESTV2ConsumerApi.class);
});
MultiEntityResultPage result = client.getPages(spec -> {
spec.limit(5);
});
implementation("io.github.primelib:confluence4j-rest-v1:<latestVersion>")
Click to view instructions for other build tools.
ConfluenceRESTV1ConsumerApi client = ConfluenceRESTV1Factory.create(spec -> {
spec.baseUrl("https://templates.atlassian.net");
spec.api(ConfluenceRESTV1ConsumerApi.class);
});
ContentArray result = client.searchContentByCQL(spec -> {
spec.cql("type=page");
spec.limit(5);
});
Released under the MIT License.