-
XtexChooser authored
'/api/rest_v1' endpoint, i.e. Wikimedia REST API, is only available for Wikimedia projects, it is going to be deprecated [1], so it should not be used anymore. To use mwbot on other MediaWiki-based wikis, we need to support MediaWiki REST APIs [2]. Previously, there are some "MW REST API compatibility" code but it does not compat at all. Known issues: - MW REST API does not generate ETag header when `redirect=no` query param is specified. [3] [1]: https://www.mediawiki.org/wiki/RESTBase/deprecation [2]: https://www.mediawiki.org/wiki/API:REST_API [3]: https://phabricator.wikimedia.org/T357603 Tested-by: xtex <xtexchooser@duck.com> Signed-off-by: xtex <xtexchooser@duck.com>