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/1279/
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/1279/", "name": "The Pink House", "slug": "the pink house", "content": "<p>\n\t\u00a0</p>\n<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/pinkhouse.jpg\" style=\"width: 300px; height: 201px;\"><span style=\"width: 300px;\" class=\"image_caption\">Pink House</span></span></p>\n<hr>\n<h3>\n\tComments:</h3>\n<p>\n\tThe Pink House in Conway has been \"The Pink House\" for well over a decade. It is the home of an openly gay couple, John Schenck and Robert Loyd. They use their home as the starting point of the <a href=\"Conway%20Pride%20Parade\">Conway Gay Pride Parade</a>. The indie film Pink Houses, directed by then Hendrix junior Jonathan Crawford, tell the story of John Schenck and Robert Loyd.</p>\n<p>\n\t\u00a0</p>\n<p>\n\t<strong>External Links:</strong></p>\n<ul>\n\t<li>\n\t\t<a href=\"http://www.conwaypride.com/home.html\">http://www.conwaypride.com/home.html</a></li>\n\t<li>\n\t\t<a href=\"http://www.amazon.com/Pink-Houses/dp/B000C7S0DU\">http://www.amazon.com/Pink-Houses/dp/B000C7S0DU</a></li>\n\t<li>\n\t\t<a href=\"http://www.imdb.com/title/tt1569481/\">http://www.imdb.com/title/tt1569481/</a></li>\n</ul>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [ "publicart" ] }