Thanks to everyone who contributed advice about disabling the API, and the security implications of trying to hide certain MediaWiki features (special pages, RSS, page history, etc.).
For anyone interested, the site is up at https://how-emotions-are-made.com.
DanB
I notice that when the MediaWiki API is disabled (with $wgEnableAPI = false), this also disables auto-suggestions in the search box.
Assuming this is intentional... what's the friendliest way to forbid general web access to the API but still allow search suggestions to appear? I considered using the hook 'ApiBeforeMain' to return false unless action=opensearch. Is that the most reliable/friendly solution?
This is MediaWiki 1.28.0 with the default search engine, on an Ubuntu 16.04LTS host.
Thank you very much,
DanB
Hello team,
Hope this meets you well?
Please I am finding it impossible to generate a query to search MediaWiki API using a title and get in return url's of all matching pages.
Kindly help.
Thank you.
Hi Mediawiki-api mailing listers!
I'm trying to extract the full list of references for different revisions
of Wikipedia pages. This seemed like it would be easy enough with
"prop=references", but I keep getting the following error:
"error": {
"code": "citestoragedisabled",
"info": "Cite extension reference storage is not enabled.",
"*": "See https://en.wikipedia.org/w/api.php for API usage."
}
Even the example on the API's documentation page returns this error
(https://en.wikipedia.org/w/api.php?action=help&modules=query%2Breferences).
Why does this occur? And is there no way of getting references through the API?
Thanks!
Best wishes,
Bertel