In order to provide efficient HTML section editing (amongst other things), we need to expose an end-point in RESTBase allowing clients to save a page in wikitext. Here's the proposed end-point:
POST /{domain}/v1/page/wikitext/{title}{/revision} { minor: boolean, bot: boolean, comment: text, text: text, token: token }
This information, together with the cookie sent in the header, will be forwarded to the MW API's edit action. The basetimestamp field will be retrieved from the supplied revision's information (if given).
Default values:
Field | Required? | Default |
---|---|---|
minor | no | false |
bot | no | false |
comment | no | Supplied by Action API? |
text | yes | |
token | yes | |
See also: