https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43581

--- Comment #3 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 206525
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=206525&action=edit
Bug 43581: Extend the plugins REST API for listing and managing installed
plugins

GET /api/v1/plugins already existed (added by bug 35837, for the
discovery page's own "already installed" check) but only returned
every installed plugin unfiltered. Extends it with capability
filtering (?capability=report/tool/configure/admin) and full
KohaTable/DataTables serverSide-mode support (pagination, sorting,
free-text search across name/description/author), matching what the
Installed plugins management page's table needs -- the list isn't
backed by a DBIC resultset, so this is applied by hand rather than
via the generic $c->objects->search helper.

Adds PUT /api/v1/plugins/{plugin_class} (enable/disable) and DELETE
/api/v1/plugins/{plugin_class} (uninstall), both delegating to the
existing Koha::Plugins::Handler rather than duplicating its logic.

KohaTable gains an actions_menu option, rendering a row's actions as
a dropdown instead of inline buttons -- the installed-plugins table
needs up to 7 possible actions per row (configure/run tool/run
report/run admin/enable/disable/uninstall/update), too many to lay
out inline the way a single-action table can.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to