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/1046/
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/1046/", "name": "Conway Locally Grown", "slug": "conway locally grown", "content": "<h3>\n\tBasic Info</h3>\n<hr>\n<p>\n\tWebsite: <a href=\"http://conway.locallygrown.net\">http://conway.locallygrown.net</a></p>\n<p>\n\tPick-up Location: <a href=\"St.%20Peter's%20Episcopal%20Church\">St. Peter's Episcopal Church</a>; Every Friday 4pm - 6pm.</p>\n<h3>\n\tHow it Works</h3>\n<hr>\n<p>\n\tConway Locally Grown is a virtual farmer's market providing products from small local (inside AR) farmers and producers.\u00a0 Orders are placed Sunday Night - Tuesday Night on the website and picked up each Friday at St. Peter's Episcopal Church at 925 Mitchell in Conway.</p>\n<h3>\n\tWhat it Means</h3>\n<hr>\n<p>\n\tConway Locally Grown means that producers know how much they have sold and have more ability to plan the sale of their production and minimize waste. It also offers producers the ability to drop off their goods in multiple markets where they will be distributed by volunteers, as opposed to the traditional farmer's market model which requires the producer to be present in order to sell their items.\u00a0 Many of the farmers who sell on Conway Locally Grown also sell their goods through the Little Rock Locally Grown hosted by the Arkansas Sustainability Network.</p>\n<p>\n\tA portion of membership fees is donated to the St. Peter's Food Pantry, and the market often contributes extra produce.\u00a0 Members of CLG have the option to add a donation to their purchases and have kindly given to the Food Pantry.</p>\n<p>\n\tCommunity members may contribute, in the same form as to St Pete's, to the community fund.\u00a0 Producers, organizations and individuals are able to apply for the community fund, usually around $500/project, and members vote to determine which project will receive the fund.\u00a0 Generally several awards are given per year.</p>\n<p>\n\tThe organization has benefited producers and consumers a like in the Conway area and around Arkansas.\u00a0 The energy of that mutually beneficial relationship is often felt at the Harvest Dinners organized by CLG.\u00a0</p>\n<p>\n\t\u00a0</p>\n<p>\n\t\u00a0</p>\n<p>\n\t\u00a0</p>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }