Skip to content

primelib/confluence4j

Repository files navigation

Confluence4J

A java client for the Confuence REST API.

Module: REST-V2

Maven Central javadoc

Installation

implementation("io.github.primelib:confluence4j-rest-v2:<latestVersion>")

Click to view instructions for other build tools.

Usage

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);
});

Module: REST-V1

Maven Central javadoc

Installation

implementation("io.github.primelib:confluence4j-rest-v1:<latestVersion>")

Click to view instructions for other build tools.

Usage

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);
});

Links

License

Released under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages