NAME
Dancer2::Plugin::JsonApi::Registry
VERSION
version 0.0.1
DESCRIPTION
The registry for the different types of data managed by the plugin.
METHODS
add_type($type, $definition = {})
Adds a data type to the registry.
type($type)
Returns the type's Dancer2::Plugin::JsonApi::Schema
. Throws an error if the type does not exist.
serialize($type,$data,$extra_data={})
Returns the serialized form of $data
.
AUTHOR
Yanick Champoux <yanick@babyl.ca>
COPYRIGHT AND LICENSE
This software is copyright (c) 2023 by Yanick Champoux.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.