The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

JSON::API::v1::Resource - A JSON API Resource object

VERSION

version 0.002

SYNOPSIS

my $object = JSON::API::v1::Resource->new(
# If omitted, this becomes a "NULL" object
id => 1,
type => 'example',
# optional
attributes => {
'title' => 'Some example you are',
},
);
$object->TO_JSON_API_V1;

DESCRIPTION

This module attempts to make a Moose object behave like a JSON API object as defined by jsonapi.org. This object adheres to the v1 specification.

ATTRIBUTES

METHODS

SEE ALSO

AUTHOR

Wesley Schwengle <waterkip@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2020 by Wesley Schwengle.

This is free software, licensed under:

The (three-clause) BSD License