The Sample API Client provides easy and convenient access to the Sample API for the Connector SDK documentation.
The accessible through datalbry-maven-registry and can be added as a dependency using the following snippet in your build.gradle.kts.
build.gradle.kts
implementation("io.datalbry.sample.api:1.0-SNAPSHOT")The client is build as a read-only client working with permutations. To be used it can be instantiated by using the following snippet:
Instantiate Configuration
fun example() {
val config = SampleApiClientConfig (
uri = URI.create("https://127.0.0.1:8000")
)
}Instantiate Client
fun example() {
// see Instantiate Configuration
val client = SampleApiClientFactory().create(config)
}