Dancer2-Plugin-JsonApi/lib/Dancer2/Plugin/JsonApi/Registry.pod

24 lines
403 B
Plaintext
Raw Normal View History

2023-11-14 16:45:06 +00:00
=head1 DESCRIPTION
The registry for the different types of data managed by the plugin.
=head1 METHODS
=head2 add_type($type, $definition = {})
Adds a data type to the registry.
=head2 type($type)
Returns the type's C<Dancer2::Plugin::JsonApi::Schema>. Throws an
error if the type does not exist.
=cut
=head2 serialize($type,$data,$extra_data={})
Returns the serialized form of C<$data>.
=cut