Skip to content

datalbry/sample-client-api

Repository files navigation

Sample API Client

The Sample API Client provides easy and convenient access to the Sample API for the Connector SDK documentation.

Getting Started

Installation

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")

Usage

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

Instantiate Configuration
fun example() {
    val config = SampleApiClientConfig (
        uri = URI.create("https://127.0.0.1:8000")
    )
}

Instantiate Client

Instantiate Client
fun example() {
    // see Instantiate Configuration
    val client = SampleApiClientFactory().create(config)
}

Further Usage

See the test at:

client/src/test/kotlin/io/datalbry/sample/api/client/feign/SampleApiClientTest.kt

It contains the instantiation and the usage. If debug through the test you can also see at every step the returned values.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages