As a Contributor, I want to create a new page, so that I can add information to the project.
POST /page/
Create a new page.
Payload: JSON
source: source of new page
title: title of new page, like "Talk:Main Page"
comment: optional edit summary
content_model: Optional content model for the main slot of the page; defaults to 'wikitext'
Status:
201 – created
401 – not authenticated
403 – not authorized
409 – a page with that title already exists
Headers:
Location: new page API endpoint location ("rest.php/v1/page/The_New_Page")
Body: JSON
* id: numeric id of the page
* key: prefixed DB key of the page, like "Talk:Main_Page"
* title: title for display, like "Talk:Main Page"
* latest: latest revision of the page, object with these properties
** id: revision ID
** timestamp: revision timestamp
* license: Object for the preferred license of the page, including these properties:
* spdx: SPDX code
* url: URL for the license
* title: title of the license
* other_licenses: array of objects with {spdx, url, title} for other licenses the page is available under
** id: user ID
** name: user name
* content_model: Content model of the main slot of the page
* source: preferred editable source of the main slot of the page; usually wikitext but depends on content_model