Rapi::Blog::DB::Component::ResultSet::ListAPI - Common "ListAPI" interface
This is a DBIx::Class component for ResultSet classes that is used for the common list_* methods (such as list_posts, list_users) exposed to Rapi::Blog scaffold templates. It provides a mechanism to define input params on a class-by-class basis, but returns a common result packet.
list_posts
list_users
The "ListAPI" call to methods such as list_posts will always return a HashRef result packet containing exactly two keys 'rows' which contains an ArrayRef of matching Row objects and 'meta' which contains additional params and details regarding the data set.
'rows'
'meta'
The meta packet is a HashRef containing the following params:
meta
Number of items returned (this page)
Total number of items (all pages)
Page number of current page
Total number of pages
True if the current page is the last page
True if this page already contains all items
The number (out of total items) this page starts at
The number (out of total items) this page ends at
The number of items remaining after this page
The number of items in all the pages before this one
The limit of items per page
Expressed as a query string, the params that would return the first page (undef if N/A)
Expressed as a query string, the params that would return the last page (undef if N/A)
Expressed as a query string, the params that would return the previous page (undef if N/A)
Expressed as a query string, the params that would return the next page (undef if N/A)
Expressed as a query string, the params that would return this same page
The current params for this page as a HashRef
Rapi::Blog
RapidApp
Rapi::Blog::Manual
Henry Van Styn <vanstyn@cpan.org>
This software is copyright (c) 2017 by IntelliTree Solutions llc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Rapi::Blog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rapi::Blog
CPAN shell
perl -MCPAN -e shell install Rapi::Blog
For more information on module installation, please visit the detailed CPAN module installation guide.