A slightly useful addition to MediaWiki would be a special page method of accessing the API.
Basically through a query where rather than /api.php?a=1&b=2&c=3 you could use /wiki/Special:Api/a=1/b=2/c=3.
There are two explanatory uses for a Api special page:
The first one deals with not knowing where the Api exists.
When programming an extension, a external tool, or such. The location of the script root is not always known, however we will know the Short Url form, and be able to access a special page, or article on the wiki. But the API is not as easily accessed, because we can't find the location of api.php, since we don't even know if the wiki is using /api.php or /w/api.php or if they have it in a complete different root.
Of course, this issue isn't that hard to step over with an external tool where we can query for that info, or just force the user to specify where it is.
However that's not the case with the second issue. Interwiki links:
Interwiki links always give us a format that we can use to point to a page on another wiki, it doesn't matter if they are in short or long form we can point to a special page on another wiki. However, even doing a bunch of parsing of urls, we won't always even know how to find an api.php on the other wiki, in fact using short urls, we'll never correctly know.
The addition of a [[Special:Api]] would allow for extensions to be able to grab an interwiki url, and then grab data on the wiki on the other side of that interwiki link. Various things like stats, WikiText, or namespace info needed for transwiki stuff could be grabbed and used in a variety of ways for an extension.
Version: unspecified
Severity: enhancement