Hi,
Andre Engels did some analysis of the type of API formats used. The
data is from a single random Sunday in late 2011:
1997267 application/json
314285 text/xml
171259 -
68358 application/vnd.php.serialized
55549 text/html
34680 text/javascript
8907 application/x-www-form-urlencoded
8882 application/xml
807 application/rsd+xml
467 text/text
105 application/x-www-form-urlencoded;
18 application/yaml
1 multipart/form-data;
yaml is used for the query and parse API actions. On this particular
day, the following services used yaml:
Thank you Andre!
Best,
Diederik
On Wed, Feb 8, 2012 at 7:45 PM, Roan Kattouw <roan.kattouw(a)gmail.com> wrote:
On Wed, Feb 8, 2012 at 11:42 PM, Tim Starling <tstarling(a)wikimedia.org> wrote:
What are the other problems?
I'm not sure what Max is referring to, other than the fact that I hate
XML (or at least using XML for this API) and generally don't like the
fact that we have to support so many formats. As I said on Bugzilla
earlier today, if I ever were to rewrite the API from scratch it'd be
JSON-only. However, we can't actually get rid of XML realistically.
* YAML -
we don't serve real YAML anyway, currently it's just a subset
of JSON.
YAML is just a few harmless lines of code, why would you want to
remove it?
Yeah that can probably stay, it's not worth breaking anything over.
Roan
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l