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/1137/
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/1137/", "name": "Activism", "slug": "activism", "content": "<h3>\n\tOccupy Conway</h3>\n<hr>\n<p>\n\t<em>(Originally posted ): Flyers around town report that <a href=\"Occupy%20Conway\">Occupy Conway</a> meet-ups.\u00a0 They have a <a href=\"http://www.facebook.com/groups/occupyconway\">Facebook Page</a>\u00a0 and the movement is certainly a response to the broader global movements, and more directly the <a href=\"http://occupywallst.org\">Occupy Wall Street Movement. </a>The movement does not boast a unified message, but rather an overall call for response from the many.\u00a0\u00a0 </em></p>\n<p>\n\tOccupy Conway established camp in <a href=\"Laurel_Park\">Laurel Park</a> on November 6th, 2011 after the previous day's <a href=\"Roccupy_Conway\">Roccupy Conway</a> event.\u00a0</p>\n<h3>\n\t<br>\n\tCritical Mass</h3>\n<hr>\n<p>\n\tAssociated with the global movement of cyclists who join in their cities the last Friday of each month to ride as a joyous gang.\u00a0 Since the movement is does not have any centralized organization or recognized leaders it is different in every locality.\u00a0 Information about the global movement is widely available through many sources. This editor enjoys the documentary <a href=\"http://www.youtube.com/watch?v=lVnWcrDDaLI&amp;feature=gv\">We Are Traffic</a> which can be viewed online and describes the origins of Critical Mass.</p>\n<p>\n\tLocally the group varies greatly in size and is organized by anyone who wants to promote a ride in the spirit of Critical Mass, and ride.\u00a0 Attendance has been as high as 25-30 during spring 2010.\u00a0 Critical Mass has generally begun at <a href=\"Simon_Park\">Simon Park</a> on the last Friday at <a href=\"Simon_Park\">Simon Park</a> and leaves at 6pm during the spring and summer or around 5pm in winter and late fall when it gets dark early.\u00a0 This schedule is not fixed. Advertising has previously been done via flyers at <a href=\"Bike_Racks\">Bike Racks</a> around Conway, <a href=\"University%20of%20Central%20Arkansas\">UCA</a>, and <a href=\"Hendrix%20College\">Hendrix</a>.</p>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }