Plack::App::Catmandu::Bag - Plack application that wraps a REST API around a Catmandu::Bag
use Catmandu; use Plack::Builder; use Plack::App::Catmandu::Bag; Catmandu->define_store('library', MongoDB => (bags => {books => {plugins => ['Versioning']}})); builder { mount '/api/books' => Plack::App::Catmandu::Bag->new( store => 'library', bag => 'books', ); };
This is an early minimal release, look at the tests for usage.
Nicolas Steenlant <nicolas.steenlant@ugent.be>
Copyright 2017- Nicolas Steenlant
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Plack::App::Catmandu::Bag, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::App::Catmandu::Bag
CPAN shell
perl -MCPAN -e shell install Plack::App::Catmandu::Bag
For more information on module installation, please visit the detailed CPAN module installation guide.