Page MenuHomePhabricator

Create Attribution API endpoint for requesting general project information
Closed, ResolvedPublic3 Estimated Story Points

Description

Description

Some partners are requesting a dedicated endpoint that allows you to request licensing information for a project as a whole, instead of exclusively supporting per-page attribution.

Conditions of acceptance

  • Create a new endpoint within the Attribution API: /site/signals
  • Return a reduced version of essential attribution:
"essential": {
    ~~"title": "string",~~
    ~~"credit": "string",~~
    "license": {
      "url": "string",
      "title": "string"
    },
    "link": "string",
    "default_brand_marks": [
      {
        "name": "string",
        "url": "string",
        "type": "string"
      }
    ],
    "source_wiki": {
      "site_name": "string",
      "project_family": "string",
      "site_id": "string",
      "site_language": "string",
      ~~"page_language": "string"~~
    }
  }

Event Timeline

HCoplin-WMF removed pmiazga as the assignee of this task.
HCoplin-WMF updated the task description. (Show Details)
HCoplin-WMF added a subscriber: pmiazga.
HCoplin-WMF triaged this task as Medium priority.Apr 7 2026, 3:35 PM
HCoplin-WMF set the point value for this task to 3.Apr 23 2026, 3:29 PM

Notes from estimation:

  • Includes updating to use new handler + adding new endpoint
aaron changed the task status from Open to In Progress.Apr 29 2026, 3:27 PM

Change #1283832 had a related patch set uploaded (by Atieno; author: Atieno):

[mediawiki/extensions/WikimediaCustomizations@master] attribution: Create Attribution API endpoint for requesting general project information

https://gerrit.wikimedia.org/r/1283832

@HCoplin-WMF do you have an idea where we can link on the site page?

Atieno solution links to domain -> eg https://en.wikipedia.org which later does a redirect to /https://en.wikipedia.org/wiki/Main_Page.

We should point to Main_Page directly to avoid the redirect, but this made me wonder - do we want to point to different page?

Let's pull main page from the config!

Change #1283832 merged by jenkins-bot:

[mediawiki/extensions/WikimediaCustomizations@master] attribution: Create Attribution API endpoint for requesting general project information

https://gerrit.wikimedia.org/r/1283832

Resolving tasks as part of closing the sprint.