NAME

Confluent::SchemaRegistry - A simple client for interacting with Confluent Schema Registry.

SYNOPSIS

use Confluent::SchemaRegistry;

my $sr = Confluent::SchemaRegistry->new( { host => 'https://my-schema-registry.org' } );

DESCRIPTION

Confluent::SchemaRegistry provides a simple way to interact with Confluent Schema Registry (https://docs.confluent.io/current/schema-registry/docs/index.html) enabling writing into Apache Kafka (https://kafka.apache.org/) according to Apache Avro schema specification (https://avro.apache.org/).

HEAD UP

Constructor

new( [%config] )

Construct a new Confluent::SchemaRegistry. Takes an optional hash that provides configuration flags for the REST::Client internal object.

The config flags, according to REST::Client::new specs, are:

METHODS

Confluent::SchemRegistry exposes the following methods.

get_response_content()

Returns the body (content) of the last method call to Schema Registry.

get_error()

Returns the error structure of the last method call to Schema Registry.

add_schema( %params )

Registers a new schema version under a subject.

Returns the generated id for the new schema or undef.

Params keys are:

TODO

...

AUTHOR

Alvaro Livraghi, alvarol@cpan.org

CONTRIBUTE

https://github.com/alivraghi/Confluent-SchemaRegistry

BUGS

Please use GitHub project link above to report problems or contact authors.

COPYRIGHT AND LICENSE

Copyright 2018 by Alvaro Livraghi

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.