Currently (2.8) if we define a new resource from a plugin, the url looks like this:
PUT http://host/plugins/myplugin/myresource/1/myplugin~action
It should be possible to define a new top level resource from a plugin so that a url would like this:
http://host/myresource/1/myplugin~action
or even just
http://host/myresource/1/action
(Gerrit could figure out based on the resource type which plugin contributes the "action" on that resource)
Link to a discussion: https://groups.google.com/d/msg/repo-discuss/_pAvzzrGvV0/edrOB_RxoHwJ