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 pageslug
. Supports the standard lookup typesregion
-- 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', ortags=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/1260/
https://zh.localwiki.org/api/v4/pages/1260/", "name": "Cadron Ridge", "slug": "cadron ridge", "content": "<p>\n\t\u00a0</p>\n<p>\n\t<strong>Cadron Ridge</strong>\u00a0is a geographical feature extending east-to-west from near Beebe, Arkansas, in White County to <a href=\"Cadron%20Settlement%20Park\">Cadron Settlement Park</a>, in Faulkner County. The ridge is transected at only a few points along its considerable length, including at House Gap, Hinson Gap, Carmichael Gap, Roden Mill Gap, and\u00a0<a href=\"http://honors.uca.edu/wiki/index.php/Cadron_Gap\">Cadron Gap</a>.</p>\n<p>\n\tThe siting of Conway\u00a0depended in large measure on the location of Cadron Gap, which the\u00a0<a href=\"http://honors.uca.edu/wiki/index.php/Little_Rock_and_Fort_Smith_Railroad\">Little Rock and Fort Smith Railroad</a>\u00a0used to avoid climbing the 150 foot ridge.</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/1/", "tags": [] }{ "url": "