A collection of examples demonstrating how to use the OpenFGA Java SDK in different scenarios.
A simple example that creates a store, runs a set of calls against it including creating a model, writing tuples and checking for access. This example is implemented in both Java and Kotlin.
opentelemetry/- Demonstrates OpenTelemetry integration both via manual code configuration, as well as no-code instrumentation using the OpenTelemetry java agent
streamed-list-objects/- Demonstrates using the StreamedListObjects API to retrieve large result sets without pagination limits
api-executor/- Demonstrates direct HTTP access to OpenFGA endpoints not yet wrapped by the SDK, maintaining SDK configuration (authentication, retries, error handling)