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/1245/
https://zh.localwiki.org/api/v4/pages/1245/", "name": "Welcome to the Wiki/Conwegian", "slug": "welcome to the wiki/conwegian", "content": "<p>\n\t<a href=\"Welcome%20to%20the%20Wiki\">Welcome to the Wiki</a> Conwegian. Please also read the <a href=\"Welcome%20to%20the%20Wiki\">general welcome</a>.</p>\n<ol>\n\t<li>\n\t\t<p>\n\t\t\tThis isn't just the <a href=\"UCA\">UCA</a> or <a href=\"Hendrix\">Hendrix</a> Wiki. We need you to contribute your knowledge. You know what happened here over 5 years ago... please share it!</p>\n\t</li>\n\t<li>\n\t\t<p>\n\t\t\tLook in your <a href=\"Photo%20Requests\">photo</a> albums for photos taken around town years ago.</p>\n\t</li>\n\t<li>\n\t\t<p>\n\t\t\tCheck some of the entries to make sure they are up to date.</p>\n\t</li>\n\t<li>\n\t\t<p>\n\t\t\tCreate entries for <a href=\"Departed%20Businesses\">Departed Businesses</a> so that people will know more about the town history.</p>\n\t</li>\n</ol>\n", "region": "https://zh.localwiki.org/api/v4/regions/1/", "tags": [] }{ "url": "