Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 948 Bytes

File metadata and controls

18 lines (11 loc) · 948 Bytes

Examples of using the OpenFGA Java SDK

A collection of examples demonstrating how to use the OpenFGA Java SDK in different scenarios.

Available Examples

Basic Examples (basic-examples/)

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 Examples

  • opentelemetry/ - Demonstrates OpenTelemetry integration both via manual code configuration, as well as no-code instrumentation using the OpenTelemetry java agent

Streaming Examples

  • streamed-list-objects/ - Demonstrates using the StreamedListObjects API to retrieve large result sets without pagination limits

API Executor Examples

  • api-executor/ - Demonstrates direct HTTP access to OpenFGA endpoints not yet wrapped by the SDK, maintaining SDK configuration (authentication, retries, error handling)