Description
To unblock the RESTbase sunsetting work, we need to begin rerouting the lint endpoints. This capability seems to have already been implemented in Core, but was never enabled in production. The scope of this work is to enable that endpoint and perform testing to ensure we have feature parity with the existing public endpoint exposed through RESTbase, so that we may begin rerouting.
Conditions of acceptance
- Add /wikitext/to/lint endpoints to coreRoutes.json to enable functionality in production:
- /transform/wikitext/to/lint
- /transform/wikitext/to/lint/{title}
- /transform/wikitext/to/lint/{title}/{revision}
- Test functionality to identify gaps in behavior between RESTbase and Core implementations
- Include tests for recent header parameter issues, such as eTag
- Document any gaps in functionality on this ticket.
- Some observed issues are captured in comments here: https://phabricator.wikimedia.org/T384216
- Fix any small issues that are identified; if a larger fix is required, create a subtask for the team to review.
OPEN QUESTION: Do we need to have a compatibility mode flag? Assume not since this feature was not previously enabled in production.