Brion Vibber <> changed:

           What    |Removed                     |Added
   Attachment #7758|0                           |1
        is obsolete|                            |

--- Comment #7 from Brion Vibber <> 2010-10-26 22:19:07 UTC ---
Created attachment 7759
Tweaked ApiRSD patch

I've done a little testing and enhanced the patch a bit:

* added the <link> to page header
* tweaked the XML output to fix some attribute vs child-element oddities
* tweaked the hook point so we can hand a slightly simpler array to extensions
to use.

This looks about right to me (though I wanna double-check in a bit), and I can
add some sample extension API info like so:

$wgHooks['ApiRsdServiceApis'][] = 'barfo';
function barfo(&$apis) {
    $apis['Atom'] = array(
        'apiLink' => wfAppendQuery(wfScript('api'), array('action' =>
    $apis['Twitter'] = array(
        'apiLink' => wfAppendQuery(wfScript('api'), array('action' =>
        'docs' => '',
        'settings' => array(
            'OAuth' => false,
    return true;

Things to double-check:
* confirm all is well with it served as generic application/xml (should be
* double-check if we're required to make URLs fully-qualified (in which case it
wouldn't hurt to enforce it on extension-provided URLs)
* test: throw in WordPress and Twitter API points as in the ext example above,
and make sure that WordPress and StatusNet Android/iPhone clients actually pick
them up when given the wiki's base URL.

May need to add hook doc entry.

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Wikibugs-l mailing list

Reply via email to