Page MenuHomePhabricator

Get license of an extension via API
Open, LowPublic



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.

Event Timeline

Aklapper renamed this task from Get license info with API to Get license of an extension via API.Aug 21 2016, 5:58 PM
Aklapper triaged this task as Low priority.

Unless I'm misunderstanding the request, this can already be done via 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

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).

Legoktm removed a project: MediaWiki-Action-API.
Legoktm added a subscriber: Legoktm.

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.

or it should be implemented outside of MediaWiki core (see Anomie's comment).

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.

Argh, I missed that tag on this task. Sorry and thanks for the correction!