EnderDashEnderDash

Java API

Add the EnderDash Java API to your plugin and use the hosted Javadocs as the source of truth.

When to use this page

The public Java API is still early. Use this page if you need dependency coordinates and Javadocs. If you need HTTP endpoints for scripts or dashboards, go to HTTP API.

Coordinates and reference docs

Hosted references

  • Maven repository: https://repo.enderdash.com
  • Javadocs: https://jd.enderdash.com

Pin a released version

Replace VERSION in the examples below with the released version you want to target.

Dependency setup

<repositories>
  <repository>
    <id>enderdash</id>
    <url>https://repo.enderdash.com</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>com.enderdash</groupId>
    <artifactId>enderdash-api</artifactId>
    <version>VERSION</version>
  </dependency>
</dependencies>

Minimal example

What this example shows

The public surface is intentionally small right now, so the best habit is to pin a version and keep the Javadocs open while you integrate.

import com.enderdash.agent.api.EnderDashApi;

public final class EnderDashIntegration {
  private final EnderDashApi api;

  public EnderDashIntegration(EnderDashApi api) {
    this.api = api;
  }

  public EnderDashApi api() {
    return api;
  }
}

Notes

Do not use server agent keys here

API keys used by the server agent are not how Java plugin integrations authenticate.

  • If the Javadocs and this page ever disagree, trust the Javadocs.

Was this page helpful?

Send a quick note if anything is missing or unclear.

Last updated on

On this page