As a Contributor, I want to get the source code for a page, so that I can edit it locally.
GET /page/{title}
Returns the page as JSON. Title is escaped for slashes
Payload: empty
Request headers:
If-Modified-Since: for cache
If-None-Match: for cacheNotable request headers:
Status:
200 – this is the page
304 – not modified; body should be empty403 - user isn't authorized to read the page
404 – page does not exist (never created or deleted)
HNotable response headers:: none
Body: JSON
Last-modified: last modification date* id: numeric id of the page
ETag: entity tag for* key: prefixed DB key of the pageage, like "Talk:Main_Page"
Location: actual location if redirected
Body: JSON* 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: SPDX code for the preferred license for the page
id: id of* other_licenses: array of SPDX codes for alternative licenses for the page
revision_id: revision ID of* contributors: array of User objects for the contributors to the pagee, each with these properties
key: prefixed DB key of the page, like "Talk:Main_Page" ** id: user ID
title: title for display, like "Talk:Main Page" ** name: user name
* source: wikitext versionsource of the page