Thread:Talk:Requests for comment/API Future/Reduce the amount of query parameters

I would prefer a new API to provide more in the default results and remove the need for various additional parameters.

For instance when requesting images I would prefer the api to provide as much information about that image (e.g. a list of urls to standard thumbnail sizes along with the dimensions)

Personally I would like http://www.mediawiki.org/wiki/Special:ApiSandbox#action=query&list=allimages&format=json&aiprop=timestamp%7Cuser%7Cuserid%7Ccomment%7Cparsedcomment%7Curl%7Csize%7Cdimensions%7Csha1%7Cmime%7Cmediatype%7Cmetadata%7Cbitdepth&ailimit=10

to return that response without the need for an aiprop

The current API is so inconsistent and there are so many parameters that can be used that it is overwhelming to someone unfamiliar with it.

For example take this example where I expected a certain behaviour and didn't get it only to find the functionality I wanted was elsewhere. https://gerrit.wikimedia.org/r/#/c/39570/

(FWIW I think if we are doing an API 2 we would benefit most from drafting the API from scratch starting with a design document preferably implementing in a REST style - not a trivial task.)