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/116890/
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/116890/", "name": "Claude Pepper Senior Citizen Center", "slug": "claude pepper senior citizen center", "content": "<p>\n\t1762 S. La Cienega Blvd. Los Angeles, CA 90035</p>\n<p>\n\t(310) 559-9677</p>\n<p>\n\t<a href=\"http://www.laparks.org/dos/senior/facility/claudePepperSCC.htm\">http://www.laparks.org/dos/senior/facility/claudePepperSCC.htm</a></p>\n<p class=\"MsoNormal\">\n\t<strong>INTERNET ACCESS</strong></p>\n<p class=\"MsoNormal\">\n\tThis facility was one of 188 public computing centers strategically placed throughout the City of Los Angeles thanks to the LA-CAN Los Angeles Computer Access Network project, funded by the\u00a0Broadband Technology Opportunities Program (BTOP) portion of the American Recovery and Reinvestment Act of 2009.</p>\n<p class=\"MsoNormal\">\n\tFor more details concerning internet access, contact the site directly.\u00a0</p>\n", "region": "https://ja.localwiki.org/api/v4/regions/144/", "tags": [] }