Last modified: 2011-03-13 18:05:40 UTC
A simple extension that hanldes the "ask" action by returning properties asked
for by the "what" parameter. See
http://meta.wikimedia.org/wiki/REST#The_ask_Action for a specification of the
a proof-of-concept patch will folow in a minute.
Created attachment 991 [details]
Ask.php - proof of concept
This patch is very basic, it would probably need a few changes, especially with
regards to security. Also, many interresting things can not yet be queried,
because the respective classes do not implement the methods needed.
To enable this ask action, put the following into LocalSettings.php:
$wgHooks['UnknownAction'] = 'wfAskHook';
Badly coupled to the internal object structure. An interface needs to be an external