Last modified: 2013-05-21 13:51:27 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 T48558, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46558 - Allow action=raw for content model `wikibase-item`
Allow action=raw for content model `wikibase-item`
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-26 08:29 UTC by Michael M.
Modified: 2013-05-21 13:51 UTC (History)
3 users (show)

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


Attachments

Description Michael M. 2013-03-26 08:29:33 UTC
I know that I "should" use the API to get the content of a page, but sometimes you don't care about other meta data, and action=raw is a much simpler interface to get the content of a page, so I think it should work on Wikidata, too. Currently a "415 Unsupported Media Type" is thrown.

In bug 40032 comment #1 Daniel Kinzler wrote:

> I removed support for action=raw for non-text content as a response to an
> explicit request from the core team - I think it was Tim Starling. The reason
> is that the current expectation is that this will return wikitext, and
> returning JSON or XML or whatever would break that expectation. Also, while
> we
> can communicate the serialization format using the ContentType header, there
> is
> no way to tell the client which content *model* is used, which makes it
> impossible to interpret the returned data.

I suggest to allow action=raw if an acceptable parameter ctype is set, i.e. something like action=raw&ctype=application/json or action=raw&ctype=application/x-wikibase-item should work. With such a parameter the client shows that he (1) doesn't expect wikitext, and (2) knows about the content model, which should answer the above concerns.
Comment 1 abraham.taherivand 2013-05-21 13:51:27 UTC
The internal raw text should not be used or displayed. Instead we've recently added the Special:EntityData page that provides that kind of access.

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


Navigation
Links