Page MenuHomePhabricator

Add JSON access to Index page content
Closed, ResolvedPublic

Description

Allowing JSON access to index page content will make it much easier for clients to access index pages fields without having to parse (or pretend to parse but actually use a regex and pray!) the wikitext representation.

This doesn't require the underlying format to be changed, just add a contentformat option to the API.

This is similar in aim to T284805, but doesn't require changes to the slots or storage model of the index content model.

Event Timeline

Change 719509 had a related patch set uploaded (by Inductiveload; author: Inductiveload):

[mediawiki/extensions/ProofreadPage@master] Introduce JSON serialisation for Index page content

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

Change 719509 merged by jenkins-bot:

[mediawiki/extensions/ProofreadPage@master] Introduce JSON serialisation for Index page content

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

This works well, but we will also need to have an API for the index data json mappings for this to make complete sense in a subdomain-agnostic way.