Data Client Schema API

It provides a way to manage/consume schemas. A schema is the set of artifacts. Schema are uniquely named, versioned, and immutable. Each schema is identified by group ID, artifact ID and version.

For the full SchemaApi specification, see SchemaApi.

The following pages describe the per-request configuration and metrics.

Example

Scala
Java
val client = BaseClient()
val schemasApi = client.of[SchemasApi]

val result = schemasApi.listSchemas().executeToEntity()

result
  .andThen {
    case Success(response: ListSchemasResponse) =>
      // do something with the list of schemas
      response.items.map(_.foreach(schema => println(schema.hrn)))
    case Failure(ex) =>
      ex.printStackTrace()
  }

Await.result(result, Duration.Inf)
BaseClient client = BaseClientJava.instance();
SchemasApi schemasApi = new SchemasApi(client);

ListSchemasResponse listResult =
    schemasApi.listSchemas().build().executeToEntity().toCompletableFuture().join();

// do something with the list of schemas
listResult
    .getItems()
    .ifPresent(list -> list.forEach(schema -> System.out.println(schema.getHrn())));

results matching ""

    No results matching ""