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/1359/
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/1359/", "name": "Bruce the Goose", "slug": "bruce the goose", "content": "<p>\n\tBruce the Goose aka \"Scherman\" is a Canada <a href=\"geese\">goose</a> in Conway that has become somewhat of a local celebrity, by way of his unfortunate circumstance. It appears that he got entangled in orange construction fencing, which broke loose and formed a bright ruffle around the goose's neck.</p>\n<p>\n\tArkansas Game and Fish Commission employees were consulted about the <a href=\"geese\">goose</a>, and because the fencing did not appear to be affecting his normal behaviors, there were no immediate plans to capture the <a href=\"geese\">goose</a> and cut off the plastic. In summer, when the flight feathers are mostly shed by Canada geese, AGFC may make an attempt to capture him as part of the census/banding of local <a href=\"geese\">geese</a>.</p>\n<p>\n\tAround 2 months after the story of Bruce the Goose gained attention, a local resident on a walk with his family was successful in catching the <a href=\"geese\">goose</a> and pulling the netting off of the <a href=\"geese\">goose</a>'s neck.</p>\n<p>\n\tBruce is most typically observed in the small pond behind Walgreen's, on College Avenue between Country Club and Salem roads.</p>\n<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/IMG_2142.JPG\" style=\"width: 224px; height: 300px;\"><span style=\"width: 224px;\" class=\"image_caption\">Bruce the Goose, 03/07/12</span></span></p>\n<hr>\n<p>\n\tI have no idea if Bruce is actually a \"he\" or \"she\", btw. -JeffPadberg</p>\n<p>\n\t\u00a0</p>\n<p>\n\tExternal links:</p>\n<ul>\n\t<li>\n\t\t<a href=\"http://thecabin.net/interact/blog-post/joe-mosby/2012-02-03/goose-trouble#.T4brodk-qW4\">http://thecabin.net/interact/blog-post/joe-mosby/2012-02-03/goose-trouble#.T4brodk-qW4</a></li>\n\t<li>\n\t\t<a href=\"http://thecabin.net/interact/blog-post/courtney-spradlin/2012-04-03/wild-goose-chase-after-angry-bird#.T4bqvdk-qW4\">http://thecabin.net/interact/blog-post/courtney-spradlin/2012-04-03/wild-goose-chase-after-angry-bird#.T4bqvdk-qW4</a></li>\n\t<li>\n\t\t<a href=\"http://thecabin.net/news/2012-04-03/agf-aware-gooses-plight#.T4bo_Nk-qW4\">http://thecabin.net/news/2012-04-03/agf-aware-gooses-plight#.T4bo_Nk-qW4</a></li>\n\t<li>\n\t\t<a href=\"http://thecabin.net/news/local/2012-04-04/game-and-fish-aware-gooses-plight#.T4beX9k-qW4\">http://thecabin.net/news/local/2012-04-04/game-and-fish-aware-gooses-plight#.T4beX9k-qW4</a></li>\n\t<li>\n\t\t<a href=\"http://thecabin.net/interact/editorials/2012-04-05/thumbs-cheers-jeers-and-quote-4-6-12#.T4bpStk-qW4\">http://thecabin.net/interact/editorials/2012-04-05/thumbs-cheers-jeers-and-quote-4-6-12#.T4bpStk-qW4</a></li>\n\t<li>\n\t\t<a href=\"http://thecabin.net/news/2012-04-17/goose-freed-netting#.T5Aautk-qW4\">http://thecabin.net/news/2012-04-17/goose-freed-netting#.T5Aautk-qW4</a></li>\n</ul>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }