Page MenuHomePhabricator

Provide a working API server for the API documentation examples
Closed, DuplicatePublicBUG REPORT

Description

If you view the API documentation at https://doc.wikimedia.org/Wikibase/master/js/rest-api/ you'll note that it only allows you to use https://wikibase.example/w/rest.php/wikibase/v0/ as the server in all its examples. This means that all of the inline examples don't work, because that's not a real API endpoint.

It'd be better if we defaulted it to something like https://test.wikidata.org/w/rest.php/wikibase/v0/ which will at least allow the on-page examples to run.

This ticket brought to you by: me having to help someone who was confused about why none of the examples worked. 😅

Event Timeline

It's possible this should just be merged into T322917, but I'm not sure if this is essentially a configuration issue for the specific instance of the docs hosted on doc.wikimedia.org or if it's more general.