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/216274/
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/216274/", "name": "River Roundup", "slug": "river roundup", "content": "<p>\n\t\u00a0</p>\n<p class=\"MsoNormal\">\n\t<strong><span>April 22 (Saturday) 2017 \u2013 River Roundup, 9-1</span></strong></p>\n<p class=\"MsoNormal\">\n\t\u00a0</p>\n<p class=\"MsoNormal\">\n\t<strong><strong><span>October 14 (Saturday) 2017 \u2013 River Roundup, 9-1</span></strong></strong></p>\n<p class=\"p1\">\n\t<span class=\"s1\">Join a small team of your friends, family, and other interesting volunteers in collecting samples of bugs and other creatures! These insects help us determine how healthy the river system is and what areas we need to focus our restoration efforts more. Volunteers will go out with trained leaders to two different stream sites. At these sites you\u2019ll have to opportunity to search through stones, leaves, and sediment to find insects. Make sure you dress to be in the field and be out for a couple of hours. Remember to register early for this event! Children are welcome, but must be attended by an adult!\u00a0</span></p>\n<p class=\"p2\">\n\tVisit the link below to register!</p>\n<p class=\"p1\">\n\t<span class=\"s1\">http://www.hrwc.org/volunteer/roundup/</span></p>\n<p class=\"MsoNormal\">\n\t\u00a0</p>\n<p>\n\t\u00a0</p>\n", "region": "https://ja.localwiki.org/api/v4/regions/162/", "tags": [] }