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/1143/
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/1143/", "name": "Petit Jean State Park", "slug": "petit jean state park", "content": "<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/petitjeanmap.jpg\"><span style=\"width: 984px;\" class=\"image_caption editor_temp\">A map of Petit Jean State Park</span></span></p>\n<br>\n<p>\n\t\u00a0</p>\n<table>\n\t<tbody>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; 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\t1285 Petit Jean Mountain Road</p>\n<p>\n\tMorrilton, AR 72110</p>\n<table>\n\t<tbody>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Hours (Visitor Center)</strong></td>\n\t\t</tr>\n\t</tbody>\n</table>\n<p>\n\tSun-Sat 8:00 AM - 5:00 PM</p>\n<p>\n\tFri-Sat 8:00 AM - 7:00 PM (April, May, September, October)</p>\n<p>\n\tSun-Sat 8:00-8:00 pm (May 27-September 3rd only)</p>\n<br>\n<table>\n\t<tbody>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; 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 style=\"vertical-align: top; background-color: transparent;\">\n\t\t\t\t(501) 727-5441</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; 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 style=\"vertical-align: top; background-color: transparent;\">\n\t\t\t\t<a href=\"http://www.zazapizzaandsalad.com/\">http://www.petitjeanstatepark.com/</a></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; 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 style=\"vertical-align: top; background-color: transparent;\">\n\t\t\t\tCitizens of Arkansas</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; 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 style=\"vertical-align: top; background-color: transparent;\">\n\t\t\t\t1923</td>\n\t\t</tr>\n\t\t<tr>\n\t\t</tr>\n\t</tbody>\n</table>\n<br>\n<p>\n\t\u00a0</p>\n<p>\n\tPetit Jean State Park, atop Petit Jean Mountain, has a long and interesting history, and a wide variety of geographical features that make it a good place to take a hike or go camping. There are unique geological formations, such as Turtle Rocks and Carpet Rocks, a waterfall, and a very large cave (House Cave).\u00a0</p>\n<p>\n\t\u00a0</p>\n<p>\n\tNEEDS MORE.</p>\n<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/petitjeansign.jpg\" style=\"width: 300px; height: 200px;\"><span style=\"width: 300px;\" class=\"image_caption\">Trailhead to Rock House Cave</span></span><span class=\"image_frame image_frame_border\"><img src=\"_files/pjcreek.jpg\" style=\"width: 300px; height: 200px;\"><span style=\"width: 300px;\" class=\"image_caption\">Creek through Petit Jean State Park</span></span><span class=\"image_frame image_frame_border\"><img src=\"_files/pjfalls.jpg\" style=\"width: 300px; height: 200px;\"><span style=\"width: 300px;\" class=\"image_caption\">The falls viewed from an overlook</span></span></p>\n<p>\n\t\u00a0</p>\n<p>\n\t\u00a0</p>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }