Last modified: 2011-03-13 18:05:40 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 T5700, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3700 - Simple REST API for querying page properties and status (patch included)
Simple REST API for querying page properties and status (patch included)
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.6.x
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-10-13 18:21 UTC by Daniel Kinzler
Modified: 2011-03-13 18:05 UTC (History)
1 user (show)

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


Attachments
Ask.php - proof of concept (1.85 KB, patch)
2005-10-13 18:24 UTC, Daniel Kinzler
Details

Description Daniel Kinzler 2005-10-13 18:21:08 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
protocol.

a proof-of-concept patch will folow in a minute.
Comment 1 Daniel Kinzler 2005-10-13 18:24:58 UTC
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:

  include "includes/Ask.php";
  $wgHooks['UnknownAction'][] = 'wfAskHook';
Comment 2 Brion Vibber 2005-10-13 19:59:53 UTC
Badly coupled to the internal object structure. An interface needs to be an external 
layer.

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


Navigation
Links