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.
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
In Progress | None | T374135 Migrate RESTbase page content endpoints | |||
In Progress | daniel | T374136 Route /api/rest_v1/page/title endpoints to MediaWiki core |
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
Change #1072921 had a related patch set uploaded (by BPirkle; author: BPirkle):
[mediawiki/core@master] REST: add restbase compat errors for some endpoints
Change #1073259 had a related patch set uploaded (by BPirkle; author: BPirkle):
[mediawiki/core@master] REST: add restbase compat error handling mode
Change #1070972 merged by jenkins-bot:
[mediawiki/core@master] REST: add restbase compat mode for some endpoints
Change #1073259 merged by jenkins-bot:
[mediawiki/core@master] REST: add restbase compat error handling mode
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
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
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
Change #1075269 merged by jenkins-bot:
[mediawiki/core@wmf/1.43.0-wmf.24] REST: vary on x-restbase-compat header if present
Change #1075266 merged by jenkins-bot:
[mediawiki/core@master] REST: vary on x-restbase-compat header if present
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
Change #1080774 merged by jenkins-bot:
[mediawiki/core@master] REST: Add items wrapper for restbase compat to some response bodies