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/1239/
https://zh.localwiki.org/api/v4/pages/1239/", "name": "Bainbridge Park", "slug": "bainbridge park", "content": "<p>\n\tBainbridge Park is a city <a href=\"parks\">park</a> located just off of Kensington Dr (80 Kensington Dr) on 6 acres. The main parking area is on Kensington Dr. <a href=\"../Tucker_Creek\" class=\"missing_link\">Tucker Creek</a> runs thru the side of the park. <a href=\"Tucker_Creek_Trail\">Tucker Creek Trail</a> also runs alongside the park alongside <a href=\"../Tucker_Creek\" class=\"missing_link\">Tucker Creek's</a> banks.</p>\n<p>\n\t<strong>Bainbridge Park includes</strong><strong>:</strong></p>\n<ul>\n\t<li>\n\t\tone covered pavilion</li>\n\t<li>\n\t\ta picnic table</li>\n\t<li>\n\t\tthree basketball goals</li>\n\t<li>\n\t\ta small playground</li>\n\t<li>\n\t\ta sea-saw</li>\n\t<li>\n\t\t3 seat swing set</li>\n\t<li>\n\t\tlarge parking area</li>\n\t<li>\n\t\tentrance to the <a href=\"Tucker_Creek_Trail\">Tucker Creek Trail</a></li>\n</ul>\n<p>\n\tExternal links:</p>\n<ul>\n\t<li>\n\t\t<a href=\"http://www.conwayparks.com/Bainbridge%20Park.html\">http://www.conwayparks.com/Bainbridge%20Park.html</a></li>\n</ul>\n", "region": "https://zh.localwiki.org/api/v4/regions/1/", "tags": [ "park" ] }{ "url": "