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/1996/
https://zh.localwiki.org/api/v4/pages/1996/", "name": "Chesterfield County", "slug": "chesterfield county", "content": "<p><span class=\"image_frame image_frame_border\"><img src=\"_files/Chesterfieldcountyseal.gif\" style=\"width: 144px; height: 144px;\"></span></p><p>Chesterfield County is one of the largest counties in the Greater Richmond area, stretching from around Rt. 150 (Chippenham Parkway) north to past Rt. 288 as far south as Colonial Heights; from past I-95 east as far west as Amelia. Due to its location south of the James River, Chesterfield is well known to Richmond area residents as \"Southside\". The county was established in 1749, and has a history of mining with its flag including \"a picture of a coal miner leaning on his pick under a pine tree with a flowing river at his feet.\"\n</p>\n<h2>Things To Do</h2>\n<ul><li><a href=\"http://www.fallingcreekironworks.org/\" class=\"external text\">Falling Creek IronWorks</a>\n</li><li> Rockwood Park (Nature Center, Dog Park, walking trails, kids playground, baseball fields, basketball courts)\n</li><li><a href=\"http://www.dcr.virginia.gov/state_parks/poc.shtml\" class=\"external text\">Pocahontas State Park (fishing, boating, water park, trails, camping, etc.)</a>\n</li><li><a href=\"http://southsidespeedway.com/intro2.html\" class=\"external text\">Southside Speedway (NASCAR racing short track)</a>\n</li><li> Huguenot Park (kids playground, basketball courts, walking trails)\n</li><li><a href=\"http://www.henricus.org/\" class=\"external text\">Henricus Historical Park</a>\n</li><li> Dutch Gap\n</li><li><a href=\"http://www.metrorichmondzoo.com/\" class=\"external text\">Metro Richmond Zoo</a>\n</li></ul>\n<h2>External Links</h2>\n<ul><li><a href=\"http://www.chesterfield.gov/historicchesterfield/history.asp\" class=\"external text\">History of Chesterfield</a>\n</li><li><a href=\"http://www.crwflags.com/fotw/flags/us-va-cf.html\" class=\"external text\">Chesterfield County flag</a>\n</li></ul>", "region": "https://zh.localwiki.org/api/v4/regions/4/", "tags": [] }{ "url": "