An open API service indexing awesome lists of open source software.

https://github.com/luckperms/rest-api-java-client

A Java client for the LuckPerms REST API
https://github.com/luckperms/rest-api-java-client

Last synced: 12 months ago
JSON representation

A Java client for the LuckPerms REST API

Awesome Lists containing this project

README

          

# LuckPerms REST API - Java Client

The [LuckPerms REST API](https://github.com/LuckPerms/rest-api) allows developers to query LuckPerms data using HTTP calls.

This library allows developers to make these HTTP calls easily using a familiar Java API. :)

### Usage

Add a dependency to your Maven/Gradle buildscript:

e.g.

```groovy
repositories {
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
}

dependencies {
implementation 'net.luckperms:rest-api-java-client:0.1-SNAPSHOT'
}
```

```xml


sonatype-snapshots
https://oss.sonatype.org/content/repositories/snapshots


net.luckperms
rest-api-java-client
0.1-SNAPSHOT

```

Then, create a new client and start making calls:

```java
LuckPermsRestClient client = LuckPermsRestClient.builder()
.baseUrl("http://localhost:8080")
.apiKey("abc123")
.build();

Response response = client.groups().get("admin").execute();
```