Last modified: 2012-04-26 16:37:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T37685, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35685 - Add API endpoint URL link somewhere in the pages
Add API endpoint URL link somewhere in the pages
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
https://www.mediawiki.org/w/index.php...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-03 23:59 UTC by Nemo
Modified: 2012-04-26 16:37 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nemo 2012-04-03 23:59:08 UTC
The diff explains the problem. Another page in the docs says "ask the wiki owner": seriously?
The endpoint URL must be added in some place where you'll be able to find it even if you don't know the script path or the index.php URL. It should be very easy to put it in a comment somewhere in [[Special:Version]], for instance.
Note that of course if you know the API endpoint you can get the index.php URL via the API itself.
Comment 1 Sam Reed (reedy) 2012-04-04 00:01:14 UTC
We have RSD discovery for the api, so in the source it is:

<link rel="EditURI" type="application/rsd+xml" href="http://192.168.0.190/w/api.php?action=rsd" />


Which then has the content:

<?xml version="1.0"?><rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd"><service><apis><api name="MediaWiki" preferred="true" apiLink="http://192.168.0.190/w/api.php" blogID=""><settings><docs xml:space="preserve">https://www.mediawiki.org/wiki/API</docs><setting name="OAuth" xml:space="preserve">false</setting></settings></api></apis><engineName xml:space="preserve">MediaWiki</engineName><engineLink xml:space="preserve">https://www.mediawiki.org/</engineLink><homePageLink xml:space="preserve">http://192.168.0.190/wiki/Main_Page</homePageLink></service></rsd>
Comment 2 Nemo 2012-04-04 00:13:19 UTC
I guess this is enough.
I must have been unlucky with the wikis I looked into (they didn't have it): when was it added? I'll add the info to the docs.
Comment 3 Sam Reed (reedy) 2012-04-04 00:19:41 UTC
(In reply to comment #2)
> I guess this is enough.
> I must have been unlucky with the wikis I looked into (they didn't have it):
> when was it added? I'll add the info to the docs.

r75621

So should be in 1.17 onwards


I could see reason to put this somewhere more user visible too
Comment 4 Roan Kattouw 2012-04-12 05:47:16 UTC
(In reply to comment #3)
> I could see reason to put this somewhere more user visible too

Agreed. I'll write a patch adding a link to Special:Version
Comment 5 Roan Kattouw 2012-04-12 19:07:32 UTC
https://gerrit.wikimedia.org/r/4797
Comment 6 Platonides 2012-04-26 16:37:11 UTC
I don't think those paths are appropiate to be listed in Special:Version

They are just configuration settings. It's fine to expose them in the API, but not in Special:Version, at least not by default.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links