Extension:Flow/API

From MediaWiki.org
Jump to: navigation, search
See also Flow/Architecture/API and Gerrit change 107411

Most Flow API read and write interactions are submodules of action=flow

action=query&prop=flowinfo[edit | edit source]

Indicates if Flow is enabled on the specified pages.

Example: get Flow info where "Talk:Sandbox" has Flow enabled, "Main Page" does not, and "Talk:Foo" does not exist.

action=flow[edit | edit source]

All action=flow requests take the following parameters:

  • submodule: The specific flow submodule you want to use. See below for docs on each of them
  • workflow: Id of the workflow to take action upon
  • page: Page title of the page to take action upon
  • token: An edit token (see API:Tokens). This is required for all write modules.
  • render: Include this to have an HTML rendering be returned in the output. Used by the extension's JS modules.


new-topic[edit | edit source]

Creates new topics on the given page or workflow Create a new topic with the subject of "The new topic" and content of "Content of new topic".

action=flow-parsoid-utils[edit | edit source]

Wrapper for converting code between wikitext and html.