| 1 | { |
| 2 | "description": "Page revision history", |
| 3 | "required": [ |
| 4 | "revisions", |
| 5 | "latest" |
| 6 | ], |
| 7 | "properties": { |
| 8 | "revisions": { |
| 9 | "type": "array", |
| 10 | "description": "List of revisions of the page", |
| 11 | "items": { |
| 12 | "type": "object", |
| 13 | "required": [ |
| 14 | "id", |
| 15 | "timestamp", |
| 16 | "minor", |
| 17 | "size", |
| 18 | "comment", |
| 19 | "user", |
| 20 | "delta" |
| 21 | ], |
| 22 | "properties": { |
| 23 | "id": { |
| 24 | "type": "integer", |
| 25 | "description": "Unique revision identifier" |
| 26 | }, |
| 27 | "timestamp": { |
| 28 | "type": "string", |
| 29 | "format": "date-time" |
| 30 | }, |
| 31 | "minor": { |
| 32 | "type": "boolean", |
| 33 | "description": "True if the edit is marked as minor" |
| 34 | }, |
| 35 | "size": { |
| 36 | "type": "integer", |
| 37 | "description": "Size of the revision in bytes" |
| 38 | }, |
| 39 | "comment": { |
| 40 | "type": "string", |
| 41 | "nullable": true, |
| 42 | "description": "The comment the author associated with the revision" |
| 43 | }, |
| 44 | "user": { |
| 45 | "type": "object", |
| 46 | "nullable": true, |
| 47 | "description": "Information about the user who made the revision", |
| 48 | "properties": { |
| 49 | "id": { |
| 50 | "type": "integer", |
| 51 | "nullable": true, |
| 52 | "description": "Unique identifier for the user; null for anonymous users" |
| 53 | }, |
| 54 | "name": { |
| 55 | "type": "string", |
| 56 | "description": "Username of the editor, or IP address if the user is anonymous" |
| 57 | } |
| 58 | }, |
| 59 | "required": [ |
| 60 | "id", |
| 61 | "name" |
| 62 | ] |
| 63 | }, |
| 64 | "delta": { |
| 65 | "type": "integer", |
| 66 | "nullable": true, |
| 67 | "description": "Change in size between this revision and the preceding one; null if not available" |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | }, |
| 72 | "latest": { |
| 73 | "type": "string", |
| 74 | "format": "uri", |
| 75 | "description": "URL to the latest revision of the page" |
| 76 | } |
| 77 | } |
| 78 | } |