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/1211/
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/1211/", "name": "Gatlin Park", "slug": "gatlin park", "content": "<p>\n\t<strong>Gatlin Park</strong> is a city <a href=\"parks\">park</a> located just off of Tyler St (2325 Tyler St) on 13 acres. The main parking area is on Tyler St across the street from <a href=\"Briarwood_Swim_Club\">Briarwood Swim Club</a>. <a href=\"Tucker_Creek\">Tucker Creek</a> runs thru the middle of the park and has two pedestrian bridges over it to connect the two sides of the park. <a href=\"Tucker_Creek_Trail\">Tucker Creek Trail</a> also runs the length of the park alongside <a href=\"Tucker_Creek\">Tucker Creek's</a> banks.</p>\n<p>\n\t<strong>Gatlin Park includes:</strong></p>\n<ul>\n\t<li>\n\t\t\u00a0one lighted basketball court</li>\n\t<li>\n\t\ttwo fenced and lighted tennis courts</li>\n\t<li>\n\t\ta baseball backstop</li>\n\t<li>\n\t\t6 picnic tables</li>\n\t<li>\n\t\t7 park benches</li>\n\t<li>\n\t\t3 grills</li>\n\t<li>\n\t\tplayground</li>\n\t<li>\n\t\t2 four seat toddler swing sets</li>\n\t<li>\n\t\ta six seat swing set</li>\n\t<li>\n\t\t2 slides</li>\n\t<li>\n\t\ta four seat swing set</li>\n\t<li>\n\t\ttwo large parking areas</li>\n\t<li>\n\t\tample green space.</li>\n</ul>\n<h2>\n\tExternal Links:</h2>\n<ul>\n\t<li>\n\t\t<a href=\"http://www.conwayparks.com/Gatling%20Park.html\">http://www.conwayparks.com/Gatling%20Park.html</a></li>\n</ul>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [ "park" ] }