When section editing in VisualEditor, there is a need to access several bits of page-global metadata. The main bits of information are:
- citations, and
- page metadata like categories, magic word flags and so on.
This information needs to be exposed in an API end point, so that VisualEditor (and other users) can retrieve it without loading the entire page. Additionally, we need to support editing of this metadata in a way that re-integrates the changes into the wikitext document. This should be done in Parsoid, with some API plumbing support from RESTBase.