The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DNS::NIOS::Traits::ApiMethods - Convenient sugar for NIOS

VERSION

version 0.004

DESCRIPTION

This trait provides convenient methods for calling some API endpoints.

Methods are simply sugar around the basic c<create> and c<get> methods. For example, these two calls are equivalent:

    $n->list_a_records();
    $n->get( path => 'record:a');

METHODS

create_a_record( payload => \%payload, [ params => \%params ] )

create_cname_record( payload => \%payload, [ params => \%params ] )

create_host_record( payload => \%payload, [ params => \%params ] )

list_a_records( [ params => \%params ] )

list_aaaa_records( [ params => \%params ] )

list_cname_records( [ params => \%params ] )

list_host_records( [ params => \%params ] )

list_ptr_records( [ params => \%params ] )

list_txt_records( [ params => \%params ] )

AUTHOR

Christian Segundo <ssmn@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2021 by Christian Segundo.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)