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/15821/
https://zh.localwiki.org/api/v4/pages/15821/", "name": "Cherin's Appliances", "slug": "cherin's appliances", "content": "<table>\n<tbody><tr>\n<td style=\"background-color: rgb(232, 236, 239);\">\n<strong>Location</strong></td>\n</tr>\n<tr>\n<td>\n727 <a href=\"Valencia%20Street\">Valencia Street</a> </td>\n</tr>\n<tr>\n<td style=\"background-color: rgb(232, 236, 239);\">\n<strong>Hours</strong></td>\n</tr>\n<tr>\n<td>\nTue-Fri: 9:30AM-5:30PMG</td>\n</tr>\n<tr>\n<td>\nSat: 10AM-5PM</td>\n</tr>\n<tr>\n<td style=\"background-color: rgb(232, 236, 239);\">\n<strong>Phone</strong></td>\n</tr>\n<tr>\n<td>\n(415) 864-2111</td>\n</tr>\n<tr>\n<td style=\"background-color: rgb(232, 236, 239);\">\n<strong>Owner(s)</strong></td>\n</tr>\n<tr>\n<td>\nWho owns this place?</td>\n</tr>\n<tr>\n<td style=\"background-color: rgb(232, 236, 239);\">\n<strong>Established</strong></td>\n</tr>\n<tr>\n<td>\nWhen were they established?</td>\n</tr>\n</tbody></table>\n<p>\n<span class=\"image_frame image_frame_border\"><img src=\"_files/cherins.jpg\"/></span> \n</p>\n<p>\nAn appliance store in <a href=\"the%20Mission\">the Mission</a>. Funky wooden half-exterior. \n</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/2/", "tags": [ "themission" ] }{ "url": "