NAME

WebAPI::DBIC::Resource::Role::Relationship

VERSION

version 0.001008

NAME

WebAPI::DBIC::Resource::Role::Relationship - methods relating to relationships between resources

$Data::Dumper::Deparse = 1;
return {
    "$$args{'foreign_alias'}.artist", {-'ident', "$$args{'self_alias'}.artistid"},
    "$$args{'foreign_alias'}.year", 1984
},
$$args{'self_resultobj'} && {
    "$$args{'foreign_alias'}.artist", $$args{'self_resultobj'}->artistid,
    "$$args{'foreign_alias'}.year", 1984
};

get_url_for_item_relationship

$url = $self->get_url_for_item_relationship($item, $relname);

Given a specific item and relationship name return a url for the related records, if possible else return undef.

AUTHOR

Tim Bunce <Tim.Bunce@pobox.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Tim Bunce.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.