Historical File Instance

API endpoint for viewing file history.

Filter fields

You can filter the result set by providing the following query parameters:

  • name -- Filter by name, exact.
  • slug -- Filter by page slug. Supports the standard lookup types
  • region -- 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 the user 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 types
  • history_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/files_history/207789/
HTTP 200 OK Vary: Accept Content-Type: text/html; charset=utf-8 Allow: GET, HEAD, OPTIONS
{ "url": "https://zh.localwiki.org/api/v4/files_history/207789/", "name": "tim hayes.jpg", "file": "https://zh.localwiki.org/media/pages/files/lvxfueaexc99xf0c.jpg", "slug": "timothy hayes", "region": "https://zh.localwiki.org/api/v4/regions/2590/", "history_comment": null, "history_date": "2022-06-28T10:38:30.815", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/109161/", "history_user_ip": "2603:7081:c06:f892:818a:2699:9e19:43ae" }