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/1325/
https://zh.localwiki.org/api/v4/pages/1325/", "name": "Conway Regional Medical Center", "slug": "conway regional medical center", "content": "<p>\n\tConway does have a relatively comprehensive medical hospital in town. <strong>Conway Regional Medical Center</strong> is located on College Avenue just west of its intersection with Donaghey Avenue. Care at the facility is coordinated by the <a href=\"http://honors.uca.edu/wiki/index.php?title=Conway_Regional_Physician_Hospital_Organization&action=edit\" class=\"new\">Conway Regional Physician Hospital Organization</a>, founded in 1993. The hospital possesses a $1.8 million da Vinci Robotic Surgical System, a breast MRI machine, PET/CT scanning at the <a href=\"http://honors.uca.edu/wiki/index.php?title=Conway_Regional_Imaging_Center&action=edit\" class=\"new\">Conway Regional Imaging Center</a>, and a 64-slice CT scanner.</p>\n<p>\n\tThe Conway Regional Medical Facility <a href=\"http://www.conwayregional.org/\">http://www.conwayregional.org/</a></p>\n<p>\n\tWomen's Health, Emergency Service, Radiology, etc... (help) NEEDS MORE DETAIL!</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/1/", "tags": [] }{ "url": "