mwoffliner icon indicating copy to clipboard operation
mwoffliner copied to clipboard

Define title param (article_id) role for Wikimedia REST API offline resources

Open VadimKovalenkoSNF opened this issue 1 year ago • 0 comments

There is an Wediawiki API to get offline resources - [link] that we need to get PCS resources for WikimediaMobile rendering. (https://en.wikipedia.org/api/rest_v1/#/offline/get_page_mobile_html_offline_resources__title_)

I'm curious about the title parameter, which should be present there but can be absolutely different (even for non-existing articles) This won't give a result - https://en.wikipedia.org/api/rest_v1/page/mobile-html-offline-resources But this will respond - https://en.wikipedia.org/api/rest_v1/page/mobile-html-offline-resources/some_dummy_title_123

Can we use some dummy placeholder of the title since it looks like it always returns the same response? After digging in Phabricator I found this patch that tend to set title param as optional - https://gerrit.wikimedia.org/r/c/mediawiki/services/mobileapps/+/608730/, but it is abandoned. Reason:

Abandoned. Per in-meeting discussion. The title param may be used in the future for lazy-loaded references.

More info can be found in this Phab ticket - https://phabricator.wikimedia.org/T254490

VadimKovalenkoSNF avatar Oct 03 '23 08:10 VadimKovalenkoSNF