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/1384/
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/1384/", "name": "Wiki Events", "slug": "wiki events", "content": "<p>\n\tThe admins and organizers of the Conway Wiki are frequently spotted at local establishments such as\u00a0<a href=\"https://conway.localwiki.org/Zaza%27s_Pizza\">Zaza's Pizza</a>,\u00a0<a href=\"https://conway.localwiki.org/Bear%27s_Den_Pizza\">Bear's Den Pizza</a>,<a href=\"https://conway.localwiki.org/Michelangelo%27s\">Michelangelo's</a>,\u00a0<a href=\"https://conway.localwiki.org/La_Lucha_Space\">La Lucha Space</a>,\u00a0<a href=\"https://conway.localwiki.org/Something%27s_Brewing\" class=\"missing_link\">Something Brewing</a>, and\u00a0<a href=\"https://conway.localwiki.org/Brick_Oven_Pizza\">Brick Oven Pizza</a>.</p>\n<h3>\n\tUpcoming</h3>\n<hr>\n<p>\n\t<strong>Meet the Local Wiki:</strong> Please drop-in and check out the wiki, add a page, say hi and generally get to know your local (Conway) wiki. \u00a0</p>\n<ul>\n\t<li>\n\t\tIn the reference room at the <a href=\"Faulkner%20County%20Library\">Faulkner County Library</a></li>\n\t<li>\n\t\tSaturday, December 1, 12p-4p - Drop in any time.</li>\n</ul>\n<p>\n\t<strong>Local Wiki Write-a-thon:\u00a0</strong>Grab your laptop and come wiki. Come have a snack, some community, and add a few pages with us. \u00a0</p>\n<ul>\n\t<li>\n\t\tLocation: ZaZa's Pizza. \u00a0(Don't forget: Like our\u00a0<a href=\"http://www.facebook.com/ConwayLocalWiki\">Facebook page</a>\u00a0to keep the wiki in your FB stream too)</li>\n\t<li>\n\t\tDecember 8 starts at 4pm.</li>\n</ul>\n<h3>\n\tAbout the Meetups</h3>\n<hr>\n<p>\n\tIn November and December (2012) the <a href=\"Guerrilla%20Archivists\">Guerrilla Archivists</a>\u00a0will be hosting events and doing a surge of promotions for the Conway Wiki as part of the Code for America <a href=\"http://brigade.codeforamerica.org/pages/race-for-reuse\">\"Race for Reuse\".</a></p>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }