MediaWiki core will soon have a REST API.
Some details of the route handler interface are in an RFC which is now
in its last call period:
https://phabricator.wikimedia.org/T221177
If you have any problems with this interface, please tell us as soon
as possible.
There is an associated Gerrit topic branch:
https://gerrit.wikimedia.org/r/q/topic:2019/rest
Several of the changes are almost ready to merge. We're not merging
the entry point (rest.php) just yet, that is still marked WIP.
-- Tim Starling