=head1 API
=head2 Class Methods
=head2 Class methods
=cut
}
=head3 type
=head3 to_api_mapping
This method returns the mapping for representing a Koha::Club::Hold object
on the API.
sub to_api_mapping {
return {
id => 'club_hold_id',
club_id => 'club_id',
biblio_id => 'biblio_id',
item_id => 'item_id'
};
=head2 Internal methods
=head3 _type
1;
item_type => $item_type
});
my $mapping = _to_api($club_hold->unblessed);
return $c->render(
status => 201,
return $c->render( status => 201, openapi => $mapping );
openapi => $club_hold->to_api
);
catch {
if ( blessed $_ and $_->isa('Koha::Exceptions::Object') ) {
-