wiki.techinc.nl/includes/Rest/Handler/Schema/PageHistory.json
Wendy Quarshie 87b34ec850 REST: JSON schema definitions for additional response bodies
Bug: T376603
Depends-On: I4193b9be4516717c7ce423131370a7d0b6ea8962
Change-Id: Ic2d9471ad446eb5f9d5e7072f1ef93f7196a20f8
2025-07-15 11:40:08 +01:00

78 lines
1.7 KiB
JSON

{
"description": "Page revision history",
"required": [
"revisions",
"latest"
],
"properties": {
"revisions": {
"type": "array",
"description": "List of revisions of the page",
"items": {
"type": "object",
"required": [
"id",
"timestamp",
"minor",
"size",
"comment",
"user",
"delta"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique revision identifier"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"minor": {
"type": "boolean",
"description": "True if the edit is marked as minor"
},
"size": {
"type": "integer",
"description": "Size of the revision in bytes"
},
"comment": {
"type": "string",
"nullable": true,
"description": "The comment the author associated with the revision"
},
"user": {
"type": "object",
"nullable": true,
"description": "Information about the user who made the revision",
"properties": {
"id": {
"type": "integer",
"nullable": true,
"description": "Unique identifier for the user; null for anonymous users"
},
"name": {
"type": "string",
"description": "Username of the editor, or IP address if the user is anonymous"
}
},
"required": [
"id",
"name"
]
},
"delta": {
"type": "integer",
"nullable": true,
"description": "Change in size between this revision and the preceding one; null if not available"
}
}
}
},
"latest": {
"type": "string",
"format": "uri",
"description": "URL to the latest revision of the page"
}
}
}