Hello,
It would be nice to have a way to get the license of an extension with the API.
This would allow external tools to only list extensions compatible with some license requirements.
Hello,
It would be nice to have a way to get the license of an extension with the API.
This would allow external tools to only list extensions compatible with some license requirements.
Unless I'm misunderstanding the request, this can already be done via action=query&meta=siteinfo&siprop=extensions - https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=extensions. For each extension, the name of the license and a link to it are given if they are defined. This was added as part of T50418 in https://gerrit.wikimedia.org/r/65299.
It seems to me it's more likely asking for a new feature in ExtensionDistributor, rather than being about the extensions actually installed on a wiki.
Boldly declining per last two comments.
Either this already exists (see DannyS712's comment) or it should be implemented outside of MediaWiki core (see Anomie's comment).
Right, this is a feature request for ExtensionDistributor . The currently existing API is for extensions that are installed, not those that are available to be downloaded from the distributor.
But don't we track ExtensionDistributor tasks here in Phabricator too?
I'm going to reopen on that basis, at least until the CPT Triage meeting.