wiki.techinc.nl/includes/Rest/Handler/Schema/ExistingPageBare.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.2 KiB
JSON

{
"description": "Page without content",
"required": [
"id",
"key",
"title",
"latest",
"content_model",
"license",
"html_url"
],
"properties": {
"id": {
"type": "integer",
"description": "Page identifier"
},
"key": {
"type": "string",
"description": "Page title in URL-friendly format"
},
"title": {
"type": "string",
"description": "Page title"
},
"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"
}
}
},
"content_model": {
"type": "string",
"description": "Page content type"
},
"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"
}
}
},
"html_url": {
"type": "string",
"description": "API route to fetch the content of the page in HTML"
}
}
}