Group
Extension

Matches 1

Mojolicious-Plugin-JSONAPI ( Z/ZI/ZIALI/Mojolicious-Plugin-JSONAPI-2.6.tar.gz, ZIALI, 2019; MetaCPAN )
Mojolicious-Plugin-JSONAPI/lib/Mojolicious/Plugin/JSONAPI.pm ( view source; MetaCPAN )
package Mojolicious::Plugin::JSONAPI;
$Mojolicious::Plugin::JSONAPI::VERSION = '2.6';
use Mojo::Base 'Mojolicious::Plugin';

use JSONAPI::Document;
use Carp                  ();
use Lingua::EN::Inflex
building JSON API compliant applications.

sub register {
    my ($self, $app, $args) = @_;
    $args ||= {};

    my %jsonapi_args;
    if (defined($args->{kebab_case_attrs})) {
        $jsonapi_args
mespace})) {

        # It's not really a JSONAPI::Document arg, but it's as close as
        # we'll get to defining a base URL at startup time.
        $jsonapi_args{namespace} = $args->{namespace};

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.