Anomie has uploaded a new change for review.
https://gerrit.wikimedia.org/r/160819
Change subject: API: Make jsonfm the default output format
......................................................................
API: Make jsonfm the default output format
Now that action=help isn't requiring xmlfm for sane display, make jsonfm
the default.
Change-Id: I515c322f31243081ed1315a17befe9792237eeaa
---
M RELEASE-NOTES-1.24
M includes/api/ApiMain.php
2 files changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/19/160819/1
diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24
index 0da957c..c7c39a2 100644
--- a/RELEASE-NOTES-1.24
+++ b/RELEASE-NOTES-1.24
@@ -267,6 +267,7 @@
* Hitting api.php without specifying an action now displays only the help for
the main module, with links to submodule help.
* API help is no longer displayed on errors.
+* Default output format for the API is now jsonfm.
=== Action API internal changes in 1.24 ===
* Methods for handling continuation are added to ApiResult, so actions other
diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php
index 87151bf..d2412e4 100644
--- a/includes/api/ApiMain.php
+++ b/includes/api/ApiMain.php
@@ -42,7 +42,7 @@
/**
* When no format parameter is given, this format will be used
*/
- const API_DEFAULT_FORMAT = 'xmlfm';
+ const API_DEFAULT_FORMAT = 'jsonfm';
/**
* List of available modules: action name => module class
--
To view, visit https://gerrit.wikimedia.org/r/160819
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I515c322f31243081ed1315a17befe9792237eeaa
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits