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/1352/
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/1352/", "name": "Bathroom at Bear's Den", "slug": "bathroom at bear's den", "content": "<h3>\n\t\u00a0</h3>\n<p>\n\tThe Men's Bathroom at the <a href=\"Bear's%20Den%20Pizza\">Bear's Den</a> appears as though Chuck Norris may have visited in pursuit of a criminal and gave every wall a few solid round-house kicks.\u00a0 Now the walls are mostly plywood, but in spots where the sheet-rock shows underneath it appears as though Chuck returns for a hard two finger jab...</p>\n<p>\n\tThe Bear's Den is a great establishment and the bathroom adds a touch of dive bar character that let you know people call this spot their 'local' (the neighborhood bar).\u00a0 We don't mean to rip on the place, in fact this editor is quite fond, but this isn't a space for flattery - it's a space to share the character of our town. Check out the <a href=\"Bear's%20Den%20Pizza\">Bear's Den</a> page to read more about it.</p>\n<p>\n\t\u00a0</p>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }