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/1386/
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/1386/", "name": "Oak Street Bistro", "slug": "oak street bistro", "content": "<p>\n\t\u00a0</p>\n<table>\n\t<tbody>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Location</strong></td>\n\t\t</tr>\n\t</tbody>\n</table>\n<p>\n\t800 Fourth Avenue, Conway, AR 72032</p>\n<table>\n\t<tbody>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Hours</strong></td>\n\t\t</tr>\n\t</tbody>\n</table>\n<p>\n\tMon-Thurs 11:00 am - 8:00 pm</p>\n<p>\n\tFri-Sat 11:00 am - 9:00 pm</p>\n<table>\n\t<tbody>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Phone</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: transparent;\">\n\t\t\t\t(501) 450-9908</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Website</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: transparent;\">\n\t\t\t\t<a href=\"http://www.oakstreetbistro.net\">http://www.oakstreetbistro.net/</a></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Owner(s)</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: transparent;\">\n\t\t\t\tPan Trent</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Established</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: transparent;\">\n\t\t\t\t1992</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Payment Method</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: transparent;\">\n\t\t\t\tCards and cash<br>\n\t\t\t\t\u00a0</td>\n\t\t</tr>\n\t</tbody>\n</table>\n<p>\n\t\u00a0</p>\n<p>\n\t<strong>Oak Street Bistro</strong>\u00a0is an American bistro restaurant, specializing in soups, salads, sandwiches, and pastas. The restaurant was formerly located at 713 Oak Street.\u00a0</p>\n<p>\n\tOwner Pan Trent opened the Bistro in 1992 offering personal recipes in salad dressings, homemade desserts, and the OSB famous white cheddar cheese and dill soup. The house soup has won the Arkansas Democrat Gazette Best Soup Award for several years. Oak Street Bistro's soup won 2008 Best Soup Runner-up for Faulkner County.</p>\n<p>\n\tAlong with an assortment of food from Southwestern Wrap to Hot Crab on Old English Muffins to Chicken Bowtie Pasta or Mediterranean Quiche, the Bistro also serves wine and liquers. A membership is required because Faulkner County is a dry county. Lifetime membership is a one time member charge of $5 per family. A member is allowed to bring as many guests as needed.</p>\n<p>\n\tMembers recieve e-mails about wine tastings the Bistro hosts the third Thursday evening of every month hosted by wine connoisseur\u00a0<a href=\"http://honors.uca.edu/wiki/index.php?title=Bruce_Cochran&amp;action=edit\" class=\"new\">Bruce Cochran</a>.</p>\n<p>\n\tThe OSB is also the location for <a href=\"Rollin'%20n'%20the%20Dough\">Rollin' n' the Dough</a> catering. Catering is available all year long for any occasion such as weddings, rehearsal dinners, business luncheons, and birthday parties.</p>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }