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/1400/
HTTP 200 OK Vary: Accept Content-Type: text/html; charset=utf-8 Allow: GET, PUT, DELETE, HEAD, OPTIONS, PATCH
{ "url": "https://de.localwiki.org/api/v4/pages/1400/", "name": "Entertainment", "slug": "entertainment", "content": "<h3>\n\tLive Music</h3>\n<hr>\n<p>\n\t<a href=\"Plan%20B\">Plan B Live Music Venue</a> (<a href=\"http://myspace.com/THEPLANBLIVE\">website</a>)\u00a0</p>\n<p>\n\t<a href=\"http://bearsdenpizza.com/\">Bear's Den Pizza</a> \u00a0on 235 Farris Road Live Music</p>\n<p>\n\t<a href=\"http://www.jjsgrill.com/\">JJ's Grill and Chill</a> on 1010 Main Street Live Music</p>\n<h3>\n\t\u00a0</h3>\n<h3>\n\tNot Live Music (Dead Music?)</h3>\n<hr>\n<p>\n\t<a href=\"Radio%20Stations\">Radio Stations available in Conway</a></p>\n", "region": "https://de.localwiki.org/api/v4/regions/1/", "tags": [] }