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/1955/
https://zh.localwiki.org/api/v4/pages/1955/", "name": "10 South Boulevard", "slug": "10 south boulevard", "content": "<p>A hyperlocal blog that reports on happenings around the bloggers' residence at 10 S. Boulevard in Richmond. Part humor, part crime reporting, part traffic and accident reporting, 10SBoulevard brings <a href=\"Neighborhoods\">neighborhood</a> news to the masses.\n</p><p>Topics include:\n</p>\n<ul><li> Mr. Jangles the Cat\n</li><li> Shopping Cart Man\n</li><li> Police Drama\n</li><li> Fire Truck Craziness\n</li><li> Accidents At The Intersection of Death (Boulevard/Main/Elwood)\n</li><li> Crime!\n</li><li> Misc. Boulevard Quirkiness\n</li></ul>\n<p>The site can be found at <a href=\"http://www.10sboulevard.com/\" class=\"external text\">10SBoulevard.com</a>.\n</p>\n<h2>Awards and Recognition</h2>\n<ul><li>Named \"Best Kept Secret\" in the <a href=\"RVANews\">RVANews</a> <a href=\"http://rvanews.com/misc/2008-richmond-blog-awards-the-winners/\" class=\"external text\">2008 Richmond Blog Awards</a>.\n</li></ul>\n<p>Wow I must cnofess you make some very trenchant points.\n</p>", "region": "https://zh.localwiki.org/api/v4/regions/4/", "tags": [] }{ "url": "