Page MenuHomePhabricator

REST: Allow extensions to define REST modules
Closed, ResolvedPublic

Description

Currently, extensions can register individual REST endpoints, but there is no mechanism in extension.json that would allow them to register modules as defined in T362480. It should be simple enough to introduce a field into extension.json that would add files to the RestAPIAdditionalRouteFiles setting.

Event Timeline

Change #1031974 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[mediawiki/core@master] REST: Add support for RestModules to extension.json

https://gerrit.wikimedia.org/r/1031974

Reedy renamed this task from REST: Allow extensiosn to define REST modules to REST: Allow extensions to define REST modules.May 23 2024, 7:48 PM

Given that this has a patch against it, moving it to In Progress

daniel changed the task status from Open to In Progress.May 30 2024, 3:41 PM
daniel triaged this task as Medium priority.

Change #1031974 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[mediawiki/core@master] REST: Add support for RestModules to extension.json

https://gerrit.wikimedia.org/r/1031974

Change #1031974 merged by jenkins-bot:

[mediawiki/core@master] REST: Add support for RestModules to extension.json

https://gerrit.wikimedia.org/r/1031974