Historical Page Instance
API endpoint for viewing page history.
Filter fields
You can filter the result set by providing the following query parameters:
name
-- Filter by name, exact.slug
-- Filter by pageslug
. Supports the standard lookup typesregion
-- Filter by region. Allows for chained filtering on all of the filters available on the region resource, e.g.region__slug
.
And the usual set of historical filter fields:
history_user
- filter by theuser
resource of the editor, if user was logged in. Allows for chained filtering on all of the filters available on the user resource, e.g.history_user__username
.history_user_ip
- filter by the IP address of the editor.history_date
- filter by history date. Supports the standard lookup typeshistory_type
- filter by history type id, exact.
Ordering
You can order the result set by providing the ordering
query parameter with the value of one of:
slug
history_date
You can reverse ordering by using the -
sign, e.g. -slug
.
GET /api/v4/pages_history/1419597/
https://zh.localwiki.org/api/v4/pages_history/1419597/", "name": "\u6148\u60e0\u5802\u7e3d\u5802", "slug": "\u6148\u60e0\u5802\u7e3d\u5802", "content": "<p>\n\t\u4e3b\u795e\uff1a\u7464\u6c60\u91d1\u6bcd\u5a18\u5a18</p>\n<p>\n\t\u5efa\u7acb\uff1a1950\u5e74</p>\n<p>\n\t\u5730\u5740\uff1a<span style=\"\">\u82b1\u84ee\u7e23\u5409\u5b89\u9109\u6148\u60e0\u4e09\u8857136\u865f</span></p>\n<p>\n\t\u00a0</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/2645/", "history_comment": "\u6148\u60e0\u5802\u7e3d\u5802", "history_date": "2022-05-18T02:58:22.123", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/112454/", "history_user_ip": "2001:b400:e284:a66f:e1ec:a45a:7225:7424" }{ "url": "