Last modified: 2014-11-18 18:07:13 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 T36020, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34020 - API returns JSON instead of YAML
API returns JSON instead of YAML
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-29 20:44 UTC by Tisza Gergő
Modified: 2014-11-18 18:07 UTC (History)
5 users (show)

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


Attachments

Description Tisza Gergő 2012-01-29 20:44:39 UTC
Here is an API call used in a hu.wikipedia RSS script (format changed to yamlfm for readability):

http://hu.wikipedia.org/w/api.php?action=expandtemplates&text={{Sablon:Kezd%C5%91lapra%20ker%C3%BClt%20sz%C3%B3cikkek%20list%C3%A1ja|2012|4|2}}&format=yamlfm

The format is JSON instead of YAML.
Comment 1 Sam Reed (reedy) 2012-01-29 20:45:59 UTC
r86302

YAML 1.2 spec is a JSON subset - "The primary objective of this revision is to bring YAML into compliance with JSON as an official subset. YAML 1.2 is compatible with 1.1 for most practical applications - this is a minor revision." [1] Per discussion with Tim, switch YAML to use the JSON formatter

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


Navigation
Links