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/961/
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/961/", "name": "Wiki Community/Inappropriate Content", "slug": "wiki community/inappropriate content", "content": "<p>\nFor discussion of <strong>Inappropriate Content</strong> by the <a href=\"Wiki%20Community\">Wiki Community</a>. \n</p>\n<p>\nTwo general categories: \n</p>\n\n <ol>\n\n <li>\n<p>\nContent that is inappropriate (any content that is illegal, non-family safe content, content not relevant to <a href=\"Conway\">Conway</a>) \n</p>\n</li>\n <li>\n<p>\nUses of the Wiki that are inappropriate (Spam, SEO Spam, a forum for debate of unresolvable issues) \n</p>\n</li>\n\n </ol>\n\n\n<p>\nSee also existing discussion on <a href=\"Wiki%20Ethics\">Wiki Ethics</a> about what should be taboo on the wiki, will copy that over here as well. \n</p>\n<h3>Should anything be taboo? If so, what?</h3>\n<p>\nPossible ideas (add what you want, even if it's just a bud of an idea): \n</p>\n\n <ul><li>\n <strong>Threats</strong> of any kind. Threatening other users is totally inappropriate. \n</li>\n <li>\n <a href=\"Libel\">Libel</a> (spreading lies via print) \n</li>\n <li>\n Creating pages that intentionally mislead users. This is not to say that dramatic or humorous wording is disallowed; just that it should be clear to an average reader when something is true versus when something is a joke or tongue in cheek. \n</li>\n <li>\n Anything that might legally be construed as \"Hate\". <em>Legally considered hate? There are only two places where the law considers \"hate speech\" to be problematic. The first is when it causes imminent danger. The second is in an employment context.</em> \n</li>\n <li>\n Confrontational speech is usually edited or removed. Controversial statements should be attributed to those who say them. \n</li>\n <li>\n Derisive commentary motivated by gender, race, orientation or <em>political beliefs</em> (example: <em>I've removed a number of really derisive comments about the campus conservatives lately - really I find it as offensive as any of the more \"commonly recognized\" forms of discrimination - there's no place for it here</em> -<a href=\"Users/KrisFricke\">KrisFricke</a>) \n</li>\n <li>\n Personal information regarding an individual without their permission. Some leeway might be acceptable for public figures. When in doubt, get permission. \n</li>\n <li>\n Pornography \n</li>\n\n <ul><li>\n <em>Does this include links to pornography websites? (they are easy to find) Please have someone explain specifics. -<a href=\"Users/GabeKoulikov\">GabeKoulikov</a></em> \n</li>\n\n <ul><li>\n <em>Depends on the context, but generally frowned upon. For instance, if there was a porn shoot done on a local bridge, a link to the gallery (with an appropriate and very clear warning) might be acceptable. A link on somebody's personal page may also make sense (if the person is a photographer, model, etc). However, a link in the middle of the entry on free-trade coffee probably wouldn't make sense. There are exceptions to taboos (which is why they are taboos, not hard rules), but only ones where it makes sense and adds to the wiki.</em> \u2014 <a href=\"Users/JabberWokky\">jw</a> \n</li>\n\n </ul></ul></ul><p>\nSee also: <a href=\"Unethical%20Editing\">Unethical Editing</a>, <a href=\"Wiki%20Social%20Norms\">Wiki Social Norms</a>, and <a href=\"Welcome%20to%20the%20Wiki\">Welcome to the Wiki</a>. Also, when it comes to flames, see <a href=\"Insults\">Insults</a>. \n</p>\n<h2>Comments</h2> \n<hr/>", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }