Last modified: 2013-03-27 16:31:05 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 T45189, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43189 - AFTv5 API sends XML regardless of what format you choose
AFTv5 API sends XML regardless of what format you choose
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
ArticleFeedbackv5 (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Matthias Mullie
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-17 05:49 UTC by Kunal Mehta (Legoktm)
Modified: 2013-03-27 16:31 UTC (History)
1 user (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2012-12-17 05:49:34 UTC
I'm trying to write a script that looked at the AFTv5 feedback, except the API is giving me back XML data when I asked for JSON.

https://en.wikipedia.org/w/api.php?action=query&list=articlefeedbackv5-view-feedback&afvfpageid=3235587&format=jsonfm

It's also giving me what appear to be links to different actions (like "feature this post", "request oversight", etc), which isn't what the module is supposed to do.
Comment 1 Matthias Mullie 2012-12-17 11:05:30 UTC
Legoktm: I'm getting JSON output - does it still output XML for you?

data['articlefeedbackv5-view-feedback']['feedback'] contains HTML though, maybe this is what's causing the confusion? It's the HTML for the Special page, for the feedback requested.

Also note that, as part of refactoring some code, there are some pending changes to these API endpoints (e.g. for this particular API, the "continue" parameter will no longer be used, but "offset" - https://gerrit.wikimedia.org/r/#/c/24264/33/api/ApiViewFeedbackArticleFeedbackv5.php) - this may require your scripts to be adjusted if and when these changes are merged

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


Navigation
Links