http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14843 --- Comment #1 from Lari Taskula <larit@student.uef.fi> --- Created attachment 42645 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=42645&action=edit Bug 14843: Notifications and messages via REST API This patch adds notifications/messages to REST API. The purpose is to let user with permissions get/create/update/delete/resend messages in message_queue. For the operations we have to introduce new functionalities to C4::Letters. Currently it is not possible to delete/update notifications or get message by id. With this patch we are able to do these operations. Two new subroutines are: C4::Letters::DequeueLetter and C4::Letters::UpdateQueuedMessage There are specific permissions for each operation. Under pemission module 'messages', the following permissions can be found: - get_message - create_message - update_message (also allows resend via status change) - delete_message - resend_message Endpoints that this patch adds are: GET /api/v1/messages (GETs all messages) POST /api/v1/messages (creates new message) GET /api/v1/messages/{messagenumber} (GETs specific message) PUT /api/v1/messages/{messagenumber} (modifies specific message) DELETE /api/v1/messages/{messagenumber} (deletes specific message) POST /api/v1/messages/{messagenumber}/resend (makes new resend for a message) See Swagger definitions for more precise descriptions. Includes REST tests and unit tests for new subroutines in C4::Letters. -- You are receiving this mail because: You are watching all bug changes.