Last modified: 2013-12-04 10:19:03 UTC
The FormatValue API module should work simmilar to the ParseValue API module. It would expect a DataValue (in JSON format) as the input, along with an (optional) data type identifier, as well as the desired output format (plain text, wikitext, html, etc). The FormatValue module would then find the appropriate formatter, apply it, and return the resulting string. Implementation note: FormatValue can probably be implemented in the DataValues repo, but should provide hooks that allow application specific data types and formatters to be injected.
*** Bug 56765 has been marked as a duplicate of this bug. ***
Change 97510 had a related patch set uploaded by Daniel Kinzler: (bug #57014) Introducing FormatSnakValue API module https://gerrit.wikimedia.org/r/97510
Change 95278 abandoned by Daniel Kinzler: (bug #57014) Introducing ApiFormatValue Reason: Use Ide20888b89 instead https://gerrit.wikimedia.org/r/95278
Change 97510 merged by jenkins-bot: (bug #57014) Introducing FormatSnakValue API module https://gerrit.wikimedia.org/r/97510