Re: Webadmin modularity: action registration

2019-12-03 Thread Matthieu Baechler
On Mon, 2019-12-02 at 17:24 +0700, Tellier Benoit wrote: [...] > > > Are routes modular or each endpoint can declare some point of > > extensions? > > Each endpoint will have to declare it's own extensions. That sounds like a good choice > > Note that my proposal leverage the Task model we u

Re: Webadmin modularity: action registration

2019-12-02 Thread Tellier Benoit
On 02/12/2019 16:18, Matthieu Baechler wrote: > Hi, > > Could you please give us a end-to-end example of what you describe? > I will give that below. > How does a Task declare the endpoint it contribute to? It takes a `Set` with a @Named annotation for it as a constructor parameter. > How

Re: Webadmin modularity: action registration

2019-12-02 Thread Matthieu Baechler
Hi, Could you please give us a end-to-end example of what you describe? How does a Task declare the endpoint it contribute to? How are conflicts managed? Are routes modular or each endpoint can declare some point of extensions? Cheers, -- Matthieu Baechler On Mon, 2019-12-02 at 14:33 +0700, T

Webadmin modularity: action registration

2019-12-01 Thread Tellier Benoit
Hi all, ## Context While contributing a way to rebuild JMAP fast messageView projection via webadmin, we end up with the need of supporting the following actions on the same endpoint: Example: POST /users/BOB/mailboxes?task=rebuildMessageFastViewProjection POST /users/BOB/mailboxes?task=reI