Page Instance

API endpoint that allows pages to be viewed and edited.

Tags

Tags can be found in the tags attribute. You can update just the tags by issuing a PATCH here with just the tags attribute present, e.g.:

{"tags": ["park", "fun"]}

To update a page and not change the tags, simply exclude the tags field from your update.

To delete all tags from the page, issue a request with tags set to [].

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.
  • tags -- Filter by tag. E.g. tags=park for all pages tagged 'park', or tags=park,wifi for all pages tagged 'park' and also tagged 'wifi'.

Ordering

You can order the result set by providing the ordering query parameter with the value of one of:

  • slug

You can reverse ordering by using the - sign, e.g. -slug.

GET /api/v4/pages/1247/
HTTP 200 OK Vary: Accept Content-Type: text/html; charset=utf-8 Allow: GET, PUT, DELETE, HEAD, OPTIONS, PATCH
{ "url": "https://ja.localwiki.org/api/v4/pages/1247/", "name": "Lake Beaverfork", "slug": "lake beaverfork", "content": "<p>\n\t<strong>Lake Beaverfork</strong>\u00a0is located in\u00a0<a href=\"http://honors.uca.edu/wiki/index.php/Faulkner_County\">Faulkner County</a>\u00a0immediately north of\u00a0<a href=\"http://honors.uca.edu/wiki/index.php/Conway\">Conway</a>, Arkansas. The lake and surrounding property is separated from the city by\u00a0<a href=\"http://honors.uca.edu/wiki/index.php/Cadron_Ridge\">Cadron Ridge</a>\u00a0running east to west between the lake and the northern neighborhoods. The lake is more properly classified as a reservoir as it is man-made. Access to the lake and its recreational facilities is generally made by following\u00a0<a href=\"http://honors.uca.edu/wiki/index.php/Arkansas_Highway_25\">Arkansas Highway 25</a>\u00a0north out of Conway.</p>\n<p>\n\tThere is a beach here. In the summer of 2010, the beach was temporarily closed to recreational use due to high levels coliform bacteria.</p>\n<p>\n\tThere is also a picnic pavilion (call to reserve) with a grill, a large field for freeze tag, frisbee, whiffle-ball and the like, and a volleyball court.\u00a0</p>\n<h2>\n\tExternal link:</h2>\n<p>\n\t<a href=\"http://www.conwayparks.com/Beaverfork.html\">http://www.conwayparks.com/Beaverfork.html</a></p>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [ "park" ] }