Page MenuHomePhabricator

Allow host wikisource.org for MediaWiki API queries
Open, Needs TriagePublic1 Estimated Story Points

Description

Running the following query gives the error "Host wikisource.org is not allowed"

select ?item {
  service wikibase:mwapi {
    bd:serviceParam wikibase:endpoint "wikisource.org" .
    bd:serviceParam wikibase:api "Generator" .
    bd:serviceParam mwapi:generator "search" .
    bd:serviceParam mwapi:gsrsearch "test" .
    ?item wikibase:apiOutputItem mwapi:item .
  }
} limit 10

(link: https://w.wiki/32CQ)

Event Timeline

Context: T261125: Allow domain wikibooks.org from wdqs mwapi service was resolved by allowing calls to “any site that could be a sitelink”, but wikisource.org couldn’t be used for sitelinks at that time; it only became supported earlier today (T138332).