wikibase-sdk
wikibase-sdk copied to clipboard
Support non-default script path
Currently, the library assumes that the action API endpoint is found under /w/api.php
, i.e. that the script path is /w
:
https://github.com/maxlath/wikibase-sdk/blob/d04dc7c2eaa3ce7d88a0a1164cddc75907902f70/lib/wikibase-sdk.js#L26-L30
This is not true for all wikis, and I think the library would be more universally useful if it supported other wiki setups as well. (For instance, I have several development wikis locally, with script paths /wiki1
, /wiki2
, etc.)
Also:
https://github.com/maxlath/wikibase-sdk/blob/d04dc7c2eaa3ce7d88a0a1164cddc75907902f70/lib/queries/get_entity_revision.js#L11
solved by #78