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/1173/
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/1173/", "name": "Conway", "slug": "conway", "content": "<p>\n\tConway is the county seat of Faulkner County, Arkansas, United States.[1] The population was 58,908 at the 2010 census, making Conway the seventh most populous city in Arkansas. It is a principal city of the Little Rock\u2013North Little Rock\u2013Conway Metropolitan Statistical Area which had 699,757 people in 2010 and with 877,091 people in the Combined area. Conway is home to three post-secondary educational institutions, earning it the nickname \"The City of Colleges\".</p>\n<p>\n\tThe city of Conway was founded by Asa P. Robinson, who came to Conway shortly after the Civil War. Robinson was the chief engineer for the Little Rock-Fort Smith Railroad (now the Union Pacific). Part of his compensation was the deed to a tract of land, one square mile, located near the old settlement of Cadron. When the railroad came through, Robinson deeded a small tract of his land back to the railroad for a depot site. He laid off a town site around the depot and named it Conway Station, in honor of a famous Arkansas family. Conway Station contained two small stores, two saloons, a depot, some temporary housing and a post office.[2]</p>\n<p>\n\tConway was long the home of the late Arkansas Supreme Court Associate Justice James D. Johnson[3] (d. 2010), who ran unsuccessful races for governor in 1956 against then fellow Democrat Orval Eugene Faubus[4] and in 1966 against the Republican Winthrop Rockefeller.[5] The conservative Johnson later switched affiliation to the Republican Party but long after the death of his nemesis Rockefeller. Johnson also lost an important race in 1968 for the United States Senate against the incumbent James William Fulbright.[6] His wife, the late Virginia Johnson (d. 2007), ran for governor in 1968, while he was running for U.S. Senator.[7] [edit]</p>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }