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/1158/
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/1158/", "name": "Critical Mass", "slug": "critical mass", "content": "<h3>\n\tThe World Wide Movement</h3>\n<hr>\n<p>\n\tCritical Mass is a world-wide leaderless movement.\u00a0 No formal organization structure exists for Critical Mass, it is merely all the people in any given city who want to ride their bikes together as Critical Mass.\u00a0 The point is to raise awareness of the existence of bicyclists, the need for infrastructure, and generally make the statement '<a href=\"http://video.google.com/videoplay?docid=189314458200750949\">we are traffic</a>' .\u00a0 (Feel free to edit or modify this description)</p>\n<h3>\n\t\u00a0</h3>\n<h3>\n\tIn Conway</h3>\n<hr>\n<p>\n\tCritical Mass has happened on and off for a number of years.\u00a0 Cyclists gather the last Friday of the month (world wide day for Critical Mass) at 5:30pm or 6 (depending on the season; for light)\u00a0 in Simon Park on Front Street.\u00a0 The groups sets the route and rides, occupying a lane when numbers permit, in a joyous fashion.\u00a0 A local favorite for riders in the Critical Mass are the 1 lane roundabouts which, if numbers are up over 15 or so, can be entirely occupied by cyclists.\u00a0 Often the crowd makes two circles to enjoy. (Please post photos when available).</p>\n<p>\n\tThe ride is not competitive and every attempt is made to stay together as a large group.\u00a0</p>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }