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/1243/
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/1243/", "name": "Youth Athletics", "slug": "youth athletics", "content": "<p>\n\t\u00a0</p>\n<ul>\n\t<li>\n\t\t<a href=\"Sonshine_Academy\">Sonshine Academy</a></li>\n\t<li>\n\t\t<a href=\"Irby_Dance_Studio\">Irby Dance Studio</a></li>\n\t<li>\n\t\t<a href=\"Central_Arkansas_Cheer_All-Stars\">Central Arkansas Cheer All-Stars</a></li>\n\t<li>\n\t\t<a href=\"Aqua_Kids_Swim_Team\">Aqua Kids Swim Team</a></li>\n\t<li>\n\t\tHendrix Learn to Swim</li>\n\t<li>\n\t\t<a href=\"http://www.conwayparks.com/Youth%20Programs.html\">City baseball, t-ball, flag football</a></li>\n\t<li>\n\t\t<a href=\"Youth_Softball_Association\">Youth Softball Association</a></li>\n\t<li>\n\t\tBoys and Girls Club Youth Basketball</li>\n\t<li>\n\t\t<a href=\"Optimist%20Club%20Peewee%20Football\">Optimist Club Peewee Football</a></li>\n\t<li>\n\t\t<a href=\"Arkansas_Rush_Soccer_Club\">Arkansas Rush Soccer Club</a></li>\n\t<li>\n\t\t<a href=\"Upwards_Basketball\">Upwards Basketball</a></li>\n\t<li>\n\t\t<a href=\"http://www.conwaytennis.com\">Conway Tennis</a></li>\n</ul>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }