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/1061/
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/1061/", "name": "Conway Police Department", "slug": "conway police department", "content": "<p>\n<span class=\"image_frame image_frame_border image_right\"><img src=\"_files/Conway_Police_Dept.jpg\" style=\"width: 600px; height: 401px;\"/><span style=\"width: 600px;\" class=\"image_caption\">The new police station. </span></span> \n</p>\n\n<table>\n<tbody><tr>\n<td style=\"background-color: rgb(224, 224, 255);\">\n<strong>Location</strong></td>\n<td>\n1105 <a href=\"Prairie%20Street\">Prairie Street</a> </td>\n</tr>\n<tr>\n<td style=\"background-color: rgb(224, 224, 255);\">\n<strong>Office Hours</strong></td>\n<td>\nMon-Fri: 7am-6pm Sat: Closed until further notice</td>\n</tr>\n<tr>\n<td style=\"background-color: rgb(224, 224, 255);\">\n<strong>Emergency Phone</strong></td>\n<td>\n911 from a Conway land line</td>\n</tr>\n<tr>\n<td style=\"background-color: rgb(224, 224, 255);\">\n<strong>Non Emergency</strong></td>\n<td>\n(501)450-6120</td>\n</tr>\n<tr>\n<td style=\"background-color: rgb(224, 224, 255);\">\n<strong>Fax Number</strong></td>\n<td>\n(501)450-6180</td>\n</tr>\n<tr>\n<td style=\"background-color: rgb(224, 224, 255);\">\n<strong>Website</strong></td>\n<td>\n<a href=\"http://www.conwaypd.org/\">http://www.conwaypd.org/</a></td>\n</tr>\n</tbody></table>\n<p>\nThe <strong>Conway Police Department</strong> (CPD) provides law enforcement for the town of Conway and investigates <a href=\"Crime\">crime</a>. The Conway Police Department has 157 personnel serving an estimated population of approximately 57,000 residents and over 40 square miles of jurisdiction. <a href=\"Police%20Chief\">Chief</a> <a href=\"Allen%20%28A.J.%29%20Gary\">Allen (A.J.) Gary</a> joined the department ??When??. The department has the unenviable job of keeping the peace between long term residents and students in a college town. \n</p>\n<p>\nThe Conway Police Department building was built in 2008/2009 and replaced the old Conway Police Department Building in Downtown. \n</p>\n<h2>Officers</h2>\n<p>\n&gt;&gt;&gt;add officers to this section \n</p>\n\n <ul><li>\n <a href=\"Officer%20Friendly\">Officer Friendly</a> \u2014 Often seen downtown on a bike. &lt;&lt;&lt; Fix or remove \n</li>\n\n </ul><h2>Services</h2>\n\n <ul><li>\n They issue <a href=\"Residential%20Parking%20Permits\">Residential Parking Permits</a> and <a href=\"http://www.city.davis.ca.us/police/pdfs/forms/Noise_Permit_Application_and_Instructions.pdf\">sound permits</a> \n</li>\n <li>\n They enforce laws including <a href=\"Noise%20Violation\">noise violations</a> \n</li>\n <li>\n They offer both a ride along (with an officer) and a sit along (with a dispatcher) program &lt;&lt;&lt;&lt; is this true??? \n</li>\n\n </ul><h2>Daily crime reports</h2>\n<p>\nThe Police Department maintains an online <a href=\"http://cityofdavis.org/police/log/index.cfm\">Crime Activity log</a> and a <a href=\"http://www.city.davis.ca.us/police/crimemap.cfm\">crime map</a>. You can read about all the police-related events each day. Most are runaway children and loud parties, but some are much more serious, such as people driving their cars into bicyclists, pedestrians, and parked cars. \n</p>\n<h2>Police Community Relations</h2>\n<h2>Racial profiling</h2>\n<h2>Racial and Gender Makeup of the Conway Police Department</h2>\n<h2>Image</h2>\n<p>\nVarious people have different opinions about police enforcement no matter where you live. Due to their strict enforcement of Conway's <a href=\"Noise%20Violation\">noise laws</a>, they are sometimes referred to by students as \"Professional Party Poopers.\" Others point out that theirs is a thankless job, and that you can't make everybody happy at once, especially while enforcing laws that you didn't write. \n</p>\n<h2>Links</h2>\n<h3>Related information on the Wiki</h3>\n\n <ul><li>\n <a href=\"How%20to%20survive%20police%20encounters\">How to survive police encounters</a> \n</li>\n <li>\n <a href=\"What%20Should%20I%20Know%20If%20I%27m%20Arrested\">What Should I Know If I'm Arrested</a>? \n</li>\n <li>\n <a href=\"Police%20Misconduct%20Stories\">Police Misconduct Stories</a> \n</li>\n <li>\n <a href=\"Police%20Appreciation%20Stories\">Police Appreciation Stories</a> \n</li>\n\n </ul><h2>Media</h2>\n<h3>External Links</h3>\n\n <ul><li>\n <a href=\"http://ratemycop.com/index.php?st=AR\">Currently there are no rankings for Conway PD</a> \n</li>\n\n </ul><h3>Comments</h3>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }