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/954/
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/954/", "name": "Silver Moon Cinema", "slug": "silver moon cinema", "content": "<p>\n\tThe Silver Moon Cinema is an outdoor \"movie theatre\". A large movie screen is set up in town and the community brings their chairs or blankets to sit on while watching. Donations of a few dollars a person are taken at the \"door\", and the money is donated to a local charity. Often popcorn and a few other concessions are sold during the movie. The movie usually starts at dark, causing the start time to change throughout the year.</p>\n<p>\n\tInitially the movies were shown in a couple different locations in downtown Conway. The last downtown location being on Oak Street at Locust Street and extending east down Oak St. Currently the movies are being shown in <a href=\"The_Village_at_Hendrix\">The Village at Hendrix</a></p>\n<p>\n\t<strong>External links:</strong></p>\n<p>\n\t<a href=\"http://www.conwayparks.com/Silver%20Moon%20Cinema.html\">http://www.conwayparks.com/Silver%20Moon%20Cinema.html</a></p>\n<p>\n\t<a href=\"http://www.facebook.com/SilverMoonCinema\">http://www.facebook.com/SilverMoonCinema</a></p>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }