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/1480/
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/1480/", "name": "Byrd Park (blog)", "slug": "byrd park (blog)", "content": "<span class=\"image_frame image_frame_border image_right\"><img src=\"_files/Byrd%20park%20blog.png\" style=\"width: 300px; height: 203px;\"><span style=\"width: 300px;\" class=\"image_caption\">Byrd Park</span></span><p>The neighborhood blog for <a href=\"Byrd_Park\" class=\"mw-redirect\">Byrd Park</a>, also covering <a href=\"Randolph\">Randolph</a> and <a href=\"Maymont\">Maymont</a>. Covers news, people and events in and around the community. \n</p><p>Founded in 2009 by <a href=\"Tim%20Vaughn\">Tim Vaughn</a>, the site soon moved to a distributed content model with multiple contributors.\n</p><p>The blog is located at <a href=\"http://byrdpark.net\" class=\"external text\">byrdpark.net</a>.\n</p>\n<h2>Latest Posts</h2>\n<ul><li><a href=\"http://byrdpark.net/2013/05/20/a-successful-garden-tour/\">A Successful Garden Tour</a></li><li><a href=\"http://byrdpark.net/2013/05/19/school-rezoning-coverage-and-public-meeting/\">School Rezoning Coverage and Public Meeting</a></li><li><a href=\"http://byrdpark.net/2013/05/17/alley-oddity-just-beachy/\">Alley Oddity: Just Beachy</a></li><li><a href=\"http://byrdpark.net/2013/05/15/what-these-maps-mean-before-and-after/\">What These Maps Mean: Before and After</a></li><li><a href=\"http://byrdpark.net/2013/05/14/what-if-clark-springs-closes/\">What if Clark Springs Closes?</a></li></ul>", "region": "https://ja.localwiki.org/api/v4/regions/4/", "tags": [ "blogs" ] }