wiki.techinc.nl/includes/Rest/Handler/Schema/NewPage.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

62 lines
1.3 KiB
JSON

{
"description": "The new page, including source (usually wikitext)",
"required": [
"id",
"title",
"key",
"latest",
"license",
"content_model",
"source"
],
"properties": {
"id": {
"type": "integer",
"description": "Page identifier"
},
"title": {
"type": "string",
"description": "Page title"
},
"key": {
"type": "string",
"description": "Page title in URL-friendly format"
},
"latest": {
"type": "object",
"description": "Information about the latest revision",
"properties": {
"id": {
"type": "integer",
"description": "Revision identifier for the latest revision"
},
"timestamp": {
"type": "string",
"description": " Timestamp of the latest revision"
}
}
},
"license": {
"type": "object",
"description": "Information about the wiki's license",
"properties": {
"url": {
"type": "string",
"description": "URL of the applicable license"
},
"title": {
"type": "string",
"description": "Name of the applicable license"
}
}
},
"content_model": {
"type": "string",
"description": "Page content type"
},
"source": {
"type": "string",
"description": "Page content in the format specified by the content_model property"
}
}
}