enonic / xp

Enonic XP
https://enonic.com
GNU General Public License v3.0
202 stars 34 forks source link

Widgets as API #10627

Closed rymsha closed 1 month ago

rymsha commented 3 months ago

instead of /admin/tool/_/widgets/com.enonic.app.guillotine/guillotine there should be /admin/tool/com.enonic.app.contentstudio/main/_/widget/com.enonic.app.guillotine/guillotine

For this API Dispatcher should allow to register dynamic APIs via Java (ApiHandler interface) And com.enonic.xp.admin-impl module should register an API with Component properties app-name = widget and no api-name

WidgetHandler code is basically reused with some minimal changes

rymsha commented 3 months ago

there might be some changers necessary in ContentStudio and app-main in order to support correct prefix. Probably should use #10628