Page MenuHomePhabricator

Wikibase API doesn't document valid wbptterms parameter to pageterms query module, or behavior if they're omitted
Closed, ResolvedPublic

Description

If you ask for the API help for the pageterms query module, e.g.

https://en.wikipedia.org/wiki/Special:ApiHelp/query%2Bpageterms

note the help for wbptterms is "The kinds of terms to get, e.g. 'label', 'description', or 'alias'."

  1. There's no mention that if you don't specify this, you get all of them.
  2. The API should list the valid values, not just give some examples.. Assuming it's not overrideable, the valid values are TYPE_ALIAS, TYPE_DESCRIPTION, TYPE_LABEL, and the API should return these.

Event Timeline

Spage updated the task description. (Show Details)
Spage raised the priority of this task from to Needs Triage.
Spage added a project: Wikidata.
Spage added a subscriber: Spage.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 3 2015, 12:23 AM

Change 201630 had a related patch set uploaded (by Spage):
Document wbptterms param to pageterms query

https://gerrit.wikimedia.org/r/201630

Change 201630 merged by jenkins-bot:
Document wbptterms param to pageterms query

https://gerrit.wikimedia.org/r/201630

hoo closed this task as Resolved.Apr 7 2015, 10:21 AM
hoo triaged this task as Normal priority.
hoo assigned this task to Spage.
hoo set Security to None.

Change 406240 had a related patch set uploaded (by Niedzielski; owner: Sniedzielski):
[mediawiki/extensions/Wikibase@master] Doc: pageterms query response type for wbptterms

https://gerrit.wikimedia.org/r/406240

Change 406240 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Doc: pageterms query response type for wbptterms

https://gerrit.wikimedia.org/r/406240