WolfgangFahl / Mediawiki-Japi

Client for Mediawiki Api
Apache License 2.0
11 stars 7 forks source link

Data formats #29

Open ghost opened 8 years ago

ghost commented 8 years ago

I could be wrong but I saw your library and I see that you use the XML format, but it's not going to be supported in new versions o MediaWiki, you can see this warning below:

"All formats other than JSON are deprecated. XML and PHP are still supported, but all others have been removed in either MediaWiki 1.26 or 1.27; see the table below. All new API users should use JSON" [1]

[1] API:Data formats. (2015, December 16). MediaWiki, The Free Wiki Engine. Retrieved 12:59, April 17, 2016 from https://www.mediawiki.org/w/index.php?title=API:Data_formats&oldid=1964994

WolfgangFahl commented 8 years ago

Thanks for the bugreport/comment see http://mediawiki-japi.bitplan.com/index.php/Jaxbgenerator and https://phabricator.wikimedia.org/T16025 and https://phabricator.wikimedia.org/T100063 for the discussion that have been ongoing for a while now. In principle Mediawiki-Japi can also work with Json - feel free to try to modify the code and create a pull request. I'll work on it when I am upgrading my main mediawiki sites to a version that doesn't support xml any more.

WolfgangFahl commented 4 years ago

It is already possible to use format="json" and if the API has changed like in the createAccount case use the rawJson returned.