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 page slug. Supports the standard lookup types
  • region -- 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', or tags=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/1495/
HTTP 200 OK Vary: Accept Content-Type: text/html; charset=utf-8 Allow: GET, PUT, DELETE, HEAD, OPTIONS, PATCH
{ "url": "https://ja.localwiki.org/api/v4/pages/1495/", "name": "Carytown Burgers and Fries", "slug": "carytown burgers and fries", "content": "<table style=\"width: 30em;\">\n<tbody><tr>\n<th colspan=\"2\" style=\"background-color: #ccccff; text-align: center;\"><strong>Carytown Burgers and Fries</strong>\n</th></tr>\n<tr>\n<th> Name\n</th><td> Carytown Burgers and Fries\n</td></tr>\n<tr>\n<th> Type of Restaurant\n</th><td> American\n</td></tr>\n<tr>\n<th> Address\n</th><td> 3500 W. Cary Street\n</td></tr>\n<tr>\n<th> City\n</th><td> <a href=\"Richmond\">Richmond</a>\n</td></tr>\n<tr>\n<th> State\n</th><td> VA\n</td></tr>\n<tr>\n<th> Zip\n</th><td> 23221\n</td></tr>\n<tr>\n<th> County\n</th><td> Richmond City\n</td></tr>\n<tr>\n<th> Phone\n</th><td> (804) 358-5225\n</td></tr>\n<tr>\n<th> Web Address\n</th><td> <a href=\"http://www.carytownburgersandfries.com/\" class=\"external free\">http://www.carytownburgersandfries.com/</a>\n</td></tr>\n</tbody></table>\n<p>A <a href=\"Carytown\">Carytown</a> favorite, <strong>Carytown Burgers and Fries</strong> serves a variety of handmade burgers, sandwiches, sides, soups, and salads. Burgers range from a traditional hamburger to specialty burgers with a large selection of toppings.\n</p><p>Seating is available on an outdoor patio or small upstairs seating area. \n</p>\n<h2>Location and Hours</h2>\n<p>Located in the shopping center at the intersection of <a href=\"Cary_Street\">Cary Street</a> and <a href=\"Nansemond%20Street\">Nansemond Street</a>.\n</p>\n<ul><li>Sunday \u2013 Thursday: 11:00 a.m. \u2013 10:00 p.m.\n</li><li>Friday \u2013 Saturday: 11:00 a.m. \u2013 10:30 p.m.\n</li></ul>", "region": "https://ja.localwiki.org/api/v4/regions/4/", "tags": [ "23221", "american", "barsandrestaurants", "carytown", "richmondcity", "wcarystreet" ] }