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/103841/
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/103841/", "name": "Ann Arbor Railroad history", "slug": "ann arbor railroad history", "content": "<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/1903-Ann-Arbor-Railroad-timetable.png\" style=\"width: 320px; height: 323px;\"></span></p>\n<p>\n\tThe Michigan Central Railroad began serving Ann Arbor in 1839; \u00a0but in 1878 <a href=\"James%20Ashley\">James Ashley</a> brought competition to local rail service by inaugurating the <strong>Toledo and Ann Arbor Railroad</strong>. In gratitude, the city renamed the former Second Street as <a href=\"Ashley%20Street\">Ashley Street</a>. Through a convoluted history of expansion and re-namings this entity ultimately became the <a href=\"https://en.wikipedia.org/wiki/Ann_Arbor_Railroad_(1895%E2%80%931976)\">Ann Arbor Railroad</a>, with track connecting Toledo to the rail-ferry docks of Elberta, Michigan, and thus to Wisconsin and beyond. Today's <a href=\"Ann%20Arbor%20Railroad\">Ann Arbor Railroad</a> is the southernmost remnant of this line, with ownership of the tracks ending at a siding just north of town.</p>\n<p>\n\tFor specific historical eras of the Ann Arbor Railroad see also\u00a0</p>\n<ul>\n\t<li>\n\t\t<a href=\"https://localwiki.org/ann-arbor/Toledo%2C_Ann_Arbor_and_Grand_Trunk_Railway\">Toledo, Ann Arbor and Grand Trunk Railway</a></li>\n\t<li>\n\t\t<a href=\"https://localwiki.org/ann-arbor/Toledo%2C_Ann_Arbor_and_North_Michigan_Railroad\">Toledo, Ann Arbor and North Michigan Railroad</a></li>\n\t<li>\n\t\t<a href=\"https://localwiki.org/ann-arbor/Michigan_Railroad_Map_of_1876\">Michigan Railroad Map of 1876</a></li>\n\t<li>\n\t\t<a href=\"https://localwiki.org/ann-arbor/Map_showing_the_Toledo%2C_Ann_Arbor%2C_and_Grand_Trunk_Railway_and_its_connections%2C_1881\">Map showing the Toledo, Ann Arbor, and Grand Trunk Railway and its connections, 1881</a></li>\n</ul>\n<p>\n\tAn <a href=\"Ann%20Arbor%20Railroad\">Ann Arbor Railroad</a> caboose has been restored by the <a href=\"Railroad%20Historical%20Society%20of%20Northwest%20Michigan\">Railroad Historical Society of Northwest Michigan</a> and is on tracks in <a href=\"Traverse%20City\">Traverse City</a>. <a href=\"http://www.gtherald.com/herald/2006/jan/04caboos.htm\" class=\"external text\">Grand Traverse Herald News story</a>.</p>\n<p>\n\t<a href=\"The%20Ann%20Arbor%20Railroad%20Technical%20and%20Historical%20Association\">The Ann Arbor Railroad Technical and Historical Association</a> has a detailed collection online, and has deposited partial archives of the company at the Clarke Historical Library at Central Michigan University.</p>\n<p>\n\tA RAILROAD FIGHT\u00a0:The Town of Howell All Torn up by Rival Companies. A WARRANT SWORN OUT AGAINST MANAGER ASHLEY FOR OBSTRUCTING THE MAILS. Gov. Alger Declines to Order Out the Troops for Mr... Detroit Free Press (1858-1922). 1886 Jan 5 4. In: ProQuest Historical Newspapers Detroit Free Press (1831-1922) . Available from: <a href=\"http://www.proquest.com/\" class=\"external free\">http://www.proquest.com/</a>; Document ID: 1721629292.</p>\n<h2>\n\tSources</h2>\n<ul>\n\t<li>\n\t\t<em>Wikipedia</em>: <a href=\"http://en.wikipedia.org/wiki/Ann_Arbor_Railroad_(1895%E2%80%931976)\" class=\"extiw\">Ann Arbor Railroad (1895\u20131976)</a></li>\n\t<li>\n\t\t<a href=\"http://www.michmarkers.com/detail.asp?txtID=L0094\" class=\"external free\">http://www.michmarkers.com/detail.asp?txtID=L0094</a></li>\n</ul>\n<p>\n\t<a href=\"Stub\" class=\"plugin includepage\">Include page Stub</a></p>\n", "region": "https://ja.localwiki.org/api/v4/regions/162/", "tags": [ "entrieswithpagesinwikipedia", "history", "railroads", "stubs", "transportation" ] }