-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
not sure if this is meant to be like this, but the object is not nested to be parsed easily when it comes to the endpoints
'declarativeui' => [
'hooks' => [
[
'type' => 'context-menu',
'endpoints' => [
[
'name' => 'Show data in Analytics',
'url' => '/ocs/v2.php/apps/analytics/createFromDataFile',
'filter' => 'text/csv',
],
],
],
],
],
this will return the following tree which is not good to parse, I would say:

I would suggest to assign the endpoints to type
'declarativeui' => [
'hooks' => [
'context-menu' => [
'endpoints' => [
[
'name' => 'Show data in Analytics',
'url' => '/ocs/v2.php/apps/analytics/createFromDataFile',
'filter' => 'text/csv',
'fileIdVariable' => 'fileId'
],
],
],
],
],
this will result is a clear structure

Metadata
Metadata
Assignees
Labels
No labels