Page MenuHomePhabricator

API: Sensible mobileview defaults
Closed, InvalidPublic

Description

The API in general for some reason loves to give you the least amount of information possible. To me this is silly and increases the learning curve to using it and it is a trend we should move away from (.

The url to request all the mobile information about a page is currently:

/w/api.php?format=json&action=mobileview&page=Foo&variant=en&redirect=yes&prop=id%7Csections%7Ctext%7Clastmodified%7Clastmodifiedby%7Clanguagecount%7Chasvariants%7Cprotection&noheadings=yes&sectionprop=level%7Cline%7Canchor&sections=all

I propose that we just make all these arguments the default unless overridden.
e.g. construct a more pretty query like:
/w/api.php?format=json&action=mobileview&page=Foo

if you just want the id prop you do:
/w/api.php?format=json&action=mobileview&page=Foo&prop=id


Version: unspecified
Severity: enhancement

Details

Reference
bz60485

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:06 AM
bzimport set Reference to bz60485.

We should do this, but use a different action= name (backwards compatibility and all)

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1654

This is never going to happen so no point in keeping this around.