NAME

Test::RestAPI::MojoGenerator - class for generate Mojo app

SYNOPSIS

my $gen = Test::RestAPI::MojoGenerator->new();

my $app_path = $gen->create_app([
    Test::RestAPI::Endpoint->new(...)
]);

DESCRIPTION

This class generate mojo application.

Mojo application have /app_mojo_healtcheck endpoint which return text 'OK everytime.

Each endpoint append request body to file.

METHODS

new(%attribute)

%attribute

create_app($endpoints)

list (ArrayRef) of Test::RestAPI::Endpoint

create mojo app with $endpoints and return temp file with application

LICENSE

Copyright (C) Avast Software.

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

AUTHOR

Jan Seidl <seidl@avast.com>