https://bugzilla.wikimedia.org/show_bug.cgi?id=60485

       Web browser: ---
            Bug ID: 60485
           Summary: API: Sensible mobileview defaults
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: MobileFrontend
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: jrob...@wikimedia.org
                CC: aricha...@wikimedia.org, jgon...@wikimedia.org,
                    jrob...@wikimedia.org, kw...@wikimedia.org,
                    maxsem.w...@gmail.com, mpinc...@wikimedia.org,
                    rkald...@wikimedia.org, tf...@wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to