<<

NAME

Koha::REST::V1::Messages

API

Methods

list

Controller function that handles retrieving a list of Koha::Patron::Message objects

get

Controller function that handles retrieving a single Koha::Patron::Message object

add

Controller function that handles adding a new Koha::Patron::Message object

update

Controller function that handles updating a Koha::Patron::Message object

delete

Controller function that handles deleting a Koha::Patron::Message object

Internal methods

_get_editable_message

    my $message = $c->_get_editable_message;

Returns the Koha::Patron::Message identified by the message_id path parameter, if the logged in user is allowed to modify it. Unless AllowAllMessageDeletion is enabled, only messages from the user's library can be modified.

_validate_body

    my $error = $c->_validate_body( $body );

Validates the relations in a request body. Returns an error structure suitable for a 400 response, or undef if the body is valid.

<<