| 1 | { |
| 2 | "description": "Page with HTML content", |
| 3 | "required": [ |
| 4 | "id", |
| 5 | "key", |
| 6 | "title", |
| 7 | "latest", |
| 8 | "content_model", |
| 9 | "license", |
| 10 | "html" |
| 11 | ], |
| 12 | "properties": { |
| 13 | "id": { |
| 14 | "type": "integer", |
| 15 | "description": "Page identifier" |
| 16 | }, |
| 17 | "key": { |
| 18 | "type": "string", |
| 19 | "description": "Page title in URL-friendly format" |
| 20 | }, |
| 21 | "title": { |
| 22 | "type": "string", |
| 23 | "description": "Page title in reading-friendly format" |
| 24 | }, |
| 25 | "latest": { |
| 26 | "type": "object", |
| 27 | "description": "Information about the latest revision", |
| 28 | "properties": { |
| 29 | "id": { |
| 30 | "type": "integer", |
| 31 | "description": "Revision identifier for the latest revision" |
| 32 | }, |
| 33 | "timestamp": { |
| 34 | "type": "string", |
| 35 | "description": " Timestamp of the latest revision in ISO 8601 format" |
| 36 | } |
| 37 | } |
| 38 | }, |
| 39 | "content_model": { |
| 40 | "type": "string", |
| 41 | "description": "Type of content on the page" |
| 42 | }, |
| 43 | "license": { |
| 44 | "type": "object", |
| 45 | "description": "Information about the wiki's license", |
| 46 | "properties": { |
| 47 | "url": { |
| 48 | "type": "string", |
| 49 | "description": "URL of the applicable license based on the $wgRightsUrl setting" |
| 50 | }, |
| 51 | "title": { |
| 52 | "type": "string", |
| 53 | "description": "Name of the applicable license based on the $wgRightsText setting" |
| 54 | } |
| 55 | } |
| 56 | }, |
| 57 | "html": { |
| 58 | "type": "string", |
| 59 | "description": "Latest page content in HTML, following the HTML specification" |
| 60 | } |
| 61 | } |
| 62 | } |