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/1446/
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/1446/", "name": "Belle Isle", "slug": "belle isle", "content": "<table style=\"width: auto;\">\n<tbody><tr>\n<td> </td></tr></tbody></table>\n<p>Belle Isle is a 54-acre <a href=\"Parks\">park</a> in downtown Richmond. Operated by the City of Richmond <a href=\"Department%20of%20Parks%20and%20Recreation\">Department of Parks and Recreation</a>, the park is a popular oasis for locals for a variety of activities. This park is part of the <a href=\"James_River_Park_System\">James River Park System</a>.\n</p>\n<h2>Available Activities</h2>\n<h3>Walking and Biking Trails</h3>\n<p>It offers a mile-long level walking and jogging trail around the perimeter of the island. Some more technical <a href=\"Hiking\">hiking trails</a> criss-cross the island and are a local <a href=\"Biking\">mountain biking</a> favorite because of the proximity to downtown. \n</p>\n<h3>Kayaking and Canoeing</h3>\n<p>Kayaking and canoeing is easier in the First Break rapids on the west end of the island. Farther east (downriver), the Class IV Hollywood Rapids provide a more technical challenge. \n</p>\n<h3>Rock Climbing</h3>\n<p>The north side of the island features a rock face overlooking the quarry pond.\n</p>\n<h3>Swimming and Sunbathing</h3>\n<p>The western, eastern, and northern sides of the island provide the best swimming opportunities in the James River. Multiple exposed rocks become sunbathing and picnic spots on warm days. Precautions should be taken as the rocky terrain and swirling currents could be dangerous. Additionally, rocks, glass bottles, cans, and other underwater obstacles make water shoes or other foot protection a good idea.\n</p>\n<h2>Location and Directions</h2>\n<p>The park is located in the middle of the <a href=\"James_River\">James River</a> and accessed via a footbridge suspended underneath the <a href=\"Lee%20Bridge\">Lee Bridge</a>. Parking is available on the north side of the river in a free lot on Tredagar Street. \n</p>\n<h2>History</h2>\n<p>Belle Isle was originally known as Broad Rock Island. It was first explored by Captain John Smith in 1607. In the 18th century the island was occupied by a fishery. In 1814, the Old Dominion Iron and Nail Company completed a nail factory. During the 1860's, the island was inhabited by a village complete with a school, church, and general store.\n</p><p>The island served as a prison for Union soldiers during the Civil War. Between 1862 and 1865, the island was home to about 30,000 POW's and as many as 1,000 died. The nail factory was re-opened after the civil war and remained in operation until 1972. \n</p><p>The Virginia Electric Power Company built and operated a hydroelectric power plant on the island between 1904 and 1963. \n</p><p>The original Lee Bridge was built over the island in 1934 and replaced by the current version in 1988. Belle Isle was formally made into a park in 1973. \n</p>", "region": "https://ja.localwiki.org/api/v4/regions/4/", "tags": [] }