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/1378/
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/1378/", "name": "Something Brewing", "slug": "something brewing", "content": "<p>\n\t\u00a0</p>\n<p>\n\tIn June of 2013 Something Brewing closed its doors.</p>\n<p>\n\tThe Log Cabin Democrat wrote a <a href=\"http://thecabin.net/news/local/2013-06-25/something-brewing-may-be-closed\">story about the closing</a>, quoting the owners as saying that after 14 years, it was time to move on.</p>\n<p>\n\t\u00a0</p>\n<table>\n\t<tbody>\n\t\t<tr>\n\t\t\t<td style=\"background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Location</strong></td>\n\t\t</tr>\n\t</tbody>\n</table>\n<p>\n\t1156 Front Street, , Conway, AR 72032</p>\n<p>\n\tConway, AR 72034</p>\n<table>\n\t<tbody>\n\t\t<tr>\n\t\t\t<td style=\"background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Hours</strong></td>\n\t\t</tr>\n\t</tbody>\n</table>\n<p>\n\tMon-Sun 7:00AM to 10:00 PM</p>\n<table>\n\t<tbody>\n\t\t<tr>\n\t\t\t<td style=\"background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Phone</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t501-327-5517</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Email</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<a href=\"mailto:[email protected]\">[email protected]</a></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Website</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Owner(s)</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\tLarry</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Established</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t????</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Payment Method</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\tCards (over $5) and cash</td>\n\t\t</tr>\n\t</tbody>\n</table>\n<p>\n\tFree <a href=\"WiFi_Hot_Spots\">wi-fi hotspot</a>! They have whole bean coffee, whole leaf tea, fresh baked pastries, coffee-house drinks and a full kitchen.</p>\n<hr>\n<h2>\n\tComments</h2>\n<p>\n\tGreat egg sandwiches, morning coffee drinks, and a nice porch!</p>\n<p>\n\tCheck the <a href=\"Recurring%20Events\">recurring events</a> page for information about Celtic Music at Something Brewing.</p>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [ "cafe", "wifi" ] }