[go: up one dir, main page]

Page MenuHomePhabricator

Route /api/rest_v1/page/title endpoints to MediaWiki core
Open, In Progress, MediumPublic

Description

We want to deprecate the /api/rest_v1/page/title endpoints, but to unblock RESTbase sunsetting, we need a way to re-implement them in some other way. The easiest way would be a compatibility mode in content.v1/page/{title}/bare and content.v1/revision/{id}/bare which can be activated by a header or request parameter. We can then use the REST gateway to route requests for these endpoints to the respective core endpoint, and set the header to activate the compatibility more.

Event Timeline

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

[mediawiki/core@master] REST: add restbase compat mode for some endpoints

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

BPirkle renamed this task from Route /api/rest_v1/page/title endpoitns to MediaWiki core to Route /api/rest_v1/page/title endpoints to MediaWiki core.Sep 5 2024, 9:03 PM
BPirkle changed the task status from Open to In Progress.Sep 12 2024, 3:25 PM
BPirkle assigned this task to daniel.
BPirkle triaged this task as Medium priority.
BPirkle moved this task from Incoming (Needs Triage) to In Progress on the MW-Interfaces-Team board.

Change #1072921 had a related patch set uploaded (by BPirkle; author: BPirkle):

[mediawiki/core@master] REST: add restbase compat errors for some endpoints

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

Change #1073259 had a related patch set uploaded (by BPirkle; author: BPirkle):

[mediawiki/core@master] REST: add restbase compat error handling mode

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

Change #1070972 merged by jenkins-bot:

[mediawiki/core@master] REST: add restbase compat mode for some endpoints

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

Change #1073259 merged by jenkins-bot:

[mediawiki/core@master] REST: add restbase compat error handling mode

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

Change #1072921 abandoned by BPirkle:

[mediawiki/core@master] REST: add restbase compat errors for some endpoints

Reason:

Merged https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1073259 instead

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

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

[mediawiki/core@master] REST: vary on x-restbase-compat header if present

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

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

[mediawiki/core@wmf/1.43.0-wmf.24] REST: vary on x-restbase-compat header if present

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

Change #1075269 merged by jenkins-bot:

[mediawiki/core@wmf/1.43.0-wmf.24] REST: vary on x-restbase-compat header if present

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

Change #1075266 merged by jenkins-bot:

[mediawiki/core@master] REST: vary on x-restbase-compat header if present

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

Change #1080774 had a related patch set uploaded (by BPirkle; author: BPirkle):

[mediawiki/core@master] REST: Add items wrapper for restbase compat to some response bodies

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

Change #1080774 merged by jenkins-bot:

[mediawiki/core@master] REST: Add items wrapper for restbase compat to some response bodies

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