In order to replace the /api/rest_v1/page/title/{title} endpoints, we
need to have something in MediaWiki that generates a compatible
responser. The v1/page/{title}/bare and v1/revision/{id}/bare endpoints
are functionally equivalent, so the easiest approach seemed to be to
add a compatibility mode to them. The compatibility mode is triggered
using the x-restbase-compat header, which can be set via the gateway
when routing the request from /api/rest_v1/page/title/.
Bug: T374136
Change-Id: I4af7ff5325660ae30faebb24753b9dc1c3acb2b3
|
||
|---|---|---|
| .. | ||
| content.v1 | ||
| CreationLegacy.js | ||
| PageHistory.js | ||
| PageLegacy.js | ||
| RevisionCompare.js | ||
| RevisionLegacy.js | ||
| Search.js | ||
| Swagger.js | ||
| Transform.js | ||
| UpdateLegacy.js | ||