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/1976/
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/1976/", "name": "Benny's BBQ", "slug": "benny's bbq", "content": "<table style=\"width: 30em;\">\n<tbody><tr>\n<th colspan=\"2\" style=\"background-color: #ccccff; text-align: center;\"><strong>Benny's BBQ</strong>\n</th></tr>\n<tr>\n<th> Name\n</th><td> Benny's BBQ\n</td></tr>\n<tr>\n<th> Type of Restaurant\n</th><td> Barbecue\n</td></tr>\n<tr>\n<th> Address\n</th><td> 3044 Stony Point Road\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> 23235\n</td></tr>\n<tr>\n<th> County\n</th><td>\n</td></tr>\n<tr>\n<th> Phone\n</th><td> (804) 320-PIGS\n</td></tr>\n<tr>\n<th> Web Address\n</th><td> <a href=\"http://bennysbbqonline.com/\" class=\"external free\">http://bennysbbqonline.com/</a>\n</td></tr>\n</tbody></table>[[Category:]]\n<span class=\"image_frame image_frame_border image_right\"><img src=\"_files/Bennys%20bbq.gif\" style=\"width: 180px; height: 132px;\"><span style=\"width: 180px;\" class=\"image_caption\">Benny's BBQ</span></span><p>Benny's BBQ has been in the Richmond area for over 15 years and BBQ lovers come from all over Virginia to Benny's BBQ to have \"Simply the Best in BBQ\" in Richmond. Benny's BBQ really lives up to that slogan.\n</p><p>Benny's serves generous portions of genuine <a href=\"Smithfield\">Smithfield</a> products and <a href=\"Legend%20Brewing%20Company\">Legend</a> beers. They also offer catering services and take out. \n</p><p>Benny's offers hand chopped or pulled smoked Pork or Beef BBQ along with tender smoked Baby Back Ribs or Chicken. If your looking for the best in deserts, try Benny's Signature Bread Pudding, it also simply can't be beat.\n</p><p>Benny's BBQ is located at 3044 Stony Point Road, Richmond, VA. 23235 in the Stony Point Shopping Center located at Forest Hill Ave. and Huguenot Road in Bon Air.\n</p><p>Open Monday through Saturday 11am to 9pm.\nClosed Sunday\n804-320-7447 (PIGS)\n</p><p>Benny's BBQ also caters to business events and private parties at reasonable. For large or small parties, Benny's BBQ offers custom catering menu planning to fit any budget.\n</p><p>Visit Benny's BBQ or check them out at bennysbbqonline.com and download their takeout and catering menus.\n</p><p>Call Benny's BBQ 804-320-PIGS (7447) for your next take-out and your order will be ready for you to pick-up and serve.\n</p><p><br>\n</p>\n<h2>Recognition</h2>\n<p>Named one of <a href=\"Richmond_Magazine\">Richmond Magazine</a>'s \"Cheap Eats\" as a best bargain restaurant for dinner in the July 2008 issue.\n</p>", "region": "https://ja.localwiki.org/api/v4/regions/4/", "tags": [ "23235", "barbecue", "barsandrestaurants", "stonypointroad", "suspiciouslyupbeat" ] }