MediaWiki API 结果
这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。
指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json。
{
"batchcomplete": "",
"query": {
"logevents": [
{
"logid": 5,
"ns": 0,
"title": "Helloworld",
"pageid": 4,
"logpage": 4,
"revid": 5,
"params": {},
"type": "create",
"action": "create",
"user": "Jpd",
"timestamp": "2026-10-18T21:06:27Z",
"comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201chello world\u201d"
},
{
"logid": 4,
"ns": 0,
"title": "Test sample",
"pageid": 3,
"logpage": 3,
"revid": 4,
"params": {},
"type": "create",
"action": "create",
"user": "Jpd",
"timestamp": "2026-10-18T20:45:33Z",
"comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c\u6d4b\u8bd5\u201d"
},
{
"logid": 3,
"ns": 2,
"title": "\u7528\u6237:Jpd",
"pageid": 0,
"logpage": 0,
"params": {
"userid": 3
},
"type": "newusers",
"action": "create",
"user": "Jpd",
"timestamp": "2026-10-18T20:35:23Z",
"comment": ""
},
{
"logid": 2,
"ns": 1,
"title": "\u8ba8\u8bba:\u9996\u9875",
"pageid": 2,
"logpage": 2,
"revid": 2,
"params": {},
"type": "create",
"action": "create",
"user": "Roedodo",
"timestamp": "2026-10-18T19:40:55Z",
"comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c1. \u5b89\u88c5\u5411\u5bfc\u5728**\u5bb9\u5668\u5185\u90e8**\u8fd0\u884c\u3002 2. \u5b83\u60f3\u5f80\u6570\u636e\u5e93\u5199\u6570\u636e\uff0c\u76ee\u6807\u8def\u5f84\u662f\u5bb9\u5668\u5185\u90e8\u7684 `/var/www/html/data`\u3002 3. \u7531\u4e8e\u6211\u4eec\u505a\u4e86\u6620\u5c04\uff0c\u8fd9\u4e2a\u8def\u5f84**\u5176\u5b9e\u5c31\u662f**\u4f60\u5bbf\u4e3b\u673a\u4e0a\u7684 `./data`\u3002 4. \u5bb9\u5668\u5185\u90e8\u7684\u8f6f\u4ef6\uff08www-data\uff09\u60f3\u8981\u5199\u5165\u6570\u636e\u65f6\uff0cLinux \u7cfb\u7edf\u4f1a\u53bb\u68c0\u67e5\u5bbf\u4e3b\u673a\u4e0a `./data` \u8fd9\u4e2a\u6587\u4ef6\u5939\u7684\u6743\u9650\u3002 5. \u56e0\u4e3a\u4f60\u4e4b\u524d\u4fee\u6539\u7684\u662f `/var/www/data`\uff08\u4f60\u622a\u56fe\u91cc\u7684\u8def\u5f84\uff09\uff0c**\u6839\u672c\u4e0d\u662f\u4f60\u9879\u76ee\u76ee\u5f55\u4e0b\u2026\u201d"
},
{
"logid": 1,
"ns": 0,
"title": "\u9996\u9875",
"pageid": 1,
"logpage": 1,
"revid": 1,
"params": {},
"type": "create",
"action": "create",
"user": "MediaWiki default",
"timestamp": "2026-10-18T16:03:24Z",
"comment": ""
}
]
}
}