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};