Page MenuHomePhabricator

Add REST module for Wikifunctions
Closed, ResolvedPublic2 Estimated Story Points

Description

Define a REST module for the wikifunctions REST endpoints, verify it appears in the REST Sandbox' drop-down.

NOTE: Base implementation for module registration is complete. Response schemas are not currently defined.

Event Timeline

Change #1248079 had a related patch set uploaded (by Mooeypoo; author: Mooeypoo):

[mediawiki/extensions/WikiLambda@master] Add a REST module definition

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

HCoplin-WMF set the point value for this task to 2.
HCoplin-WMF updated the task description. (Show Details)

Change #1250107 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/mediawiki-config@master] [WIP] Expose new wikifunctions.v0 REST API module on Wikifunctions.org only

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

Change #1251154 had a related patch set uploaded (by Aaron Schulz; author: Aaron Schulz):

[operations/mediawiki-config@master] Add WikiLambda extension REST module to the REST sandbox

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

Change #1251154 abandoned by Aaron Schulz:

[operations/mediawiki-config@master] Add WikiLambda extension REST module to the REST sandbox

Reason:

We can go with https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/1250107 after things stabilize. It looks like there is need to keep sandbox entries continuously around.

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

Change #1248079 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Add a REST module definition, replacing flat RestRoutes definition

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

Change #1250107 merged by jenkins-bot:

[operations/mediawiki-config@master] Expose new wikifunctions.v0 REST API module on Wikifunctions.org only

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

Mentioned in SAL (#wikimedia-operations) [2026-03-19T13:40:40Z] <jforrester@deploy2002> Started scap sync-world: Backport for [[gerrit:1250107|Expose new wikifunctions.v0 REST API module on Wikifunctions.org only (T419053)]]

Mentioned in SAL (#wikimedia-operations) [2026-03-19T13:42:32Z] <jforrester@deploy2002> jforrester: Backport for [[gerrit:1250107|Expose new wikifunctions.v0 REST API module on Wikifunctions.org only (T419053)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

https://www.wikifunctions.org/wiki/Special:RestSandbox/wikifunctions.v0 is now fully wired-up and working. There's more to do (e.g. add a response schema, document that /call/'s arguments has to be encoded as base64-Web-safe and its output decoded as such), but I think this counts?

Mentioned in SAL (#wikimedia-operations) [2026-03-19T13:46:43Z] <jforrester@deploy2002> Finished scap sync-world: Backport for [[gerrit:1250107|Expose new wikifunctions.v0 REST API module on Wikifunctions.org only (T419053)]] (duration: 06m 03s)