The Wikidata API will simply be an extension of the existing MediaWiki API.
The following functions are being envisioned for Phase 1 (or even Phase 0.5, which is, for Wikimania.)
*
means optional
- The API is documented on mw:Extension:Wikibase/API and in api.php. Actual URL will be depending on setup.
Todo
- [skeleton]
searchByName(language, fragment, *hints)
(used for the Wikidata Suggest widget)
See also
Phase 2
- [ok]
setItem(data)
Done
Kittens are crying!
TODO
changeSiteLinks( ( id XOR title ), changes )
- Gets called by the site links UI of the local wiki and contains a list of additions and removals which should be propagated to the repo. This is thus a proxy API module. Should look into immediately updating the local link list to not have to wait for the repo to run the job that will push the change back. In fact, we might want the repo to skip updating this client wiki altogether.