api:wiki_pages
Table of Contents
Record field format
[table]
[thead]
[tr]
[th]Name[/th]
[th]Type[/th]
[th]Details[/th]
[/tr]
[/thead]
[tbody]
[tr]
[td]
id[/td][td]integer[/td]
[td]>0[/td]
[/tr]
[tr]
[td]
title[/td][td]string[/td]
[td][/td]
[/tr]
[tr]
[td]
body[/td][td]string[/td]
[td][/td]
[/tr]
[tr]
[td]
other_names[/td][td]array[/td]
[td]strings[/td]
[/tr]
[tr]
[td]
is_deleted[/td][td]boolean[/td]
[td][/td]
[/tr]
[tr]
[td]
locked[/td][td]boolean[/td]
[td][/td]
[/tr]
[tr]
[td]
created_at[/td][td]timestamp[/td]
[td][/td]
[/tr]
[tr]
[td]
updated_at[/td][td]timestamp[/td]
[td][/td]
[/tr]
[/tbody]
[/table]
Derived field format
These are values which are not part of the actual record, but instead are derived from calculations and record lookups on the fly.
[table]
[thead]
[tr]
[th]Name[/th]
[th]Type[/th]
[th]Details[/th]
[th]Notes[/th]
[/tr]
[/thead]
[tbody]
[tr]
[td]
category_name[/td][td]string[/td]
[td][0,1,3,4,5,null][/td]
[td]It is the
category of the "associated tag":[#dtext-associations] if it exists, otherwise it is null.[/td][/tr]
[/tbody]
[/table]
Associated attributes
[table]
[thead]
[tr]
[th]Name[/th]
[th]Type[/th]
[th]Number[/th]
[th]Availability[/th]
[th]Details[/th]
[/tr]
[/thead]
[tbody]
[tr]
[td]
tag[/td][td]tag[/td]
[td]single[/td]
[td]optional[/td]
[td][/td]
[/tr]
[tr]
[td]
artist[/td][td]artist[/td]
[td]single[/td]
[td]optional[/td]
[td][/td]
[/tr]
[tr]
[td]
dtext_links[/td][td]dtext link[/td]
[td]multiple[/td]
[td]optional[/td]
[td][/td]
[/tr]
[/tbody]
[/table]
Nomenclature
- Plural form: "wiki_pages"
- Used in the URL pathname
- Singular form: "wiki_page"
- Used for write parameters (Help:API Write Requests)
- Versions: API:Wiki page versions
Index
[table]
[tbody]
[tr]
[td]HTTP Method[/td]
[td]GET[/td]
[/tr]
[tr]
[td]Base URL[/td]
[td]
/wiki_pages.json[/td][/tr]
[tr]
[td]Type[/td]
[td]read request[/td]
[/tr]
[tr]
[td]Description[/td]
[td]The default order is updated at descending.[/td]
[/tr]
[/tbody]
[/table]
Search attributes
All of the following are standard attributes with all of their available formats and qualifiers.
- Number syntax
idcreated_atupdated_at- Text syntax
titlebody- Array syntax
other_names- Boolean syntax
is_deletedis_locked- Chaining syntax
tagartistdtext_links
Special search parameters
- Case-insensitive wildcard searching on the body text field.body_matches
- Normalized case-insensitive wildcard searching on the title text field.title_normalize
- Case-insensitive wildcard search on any of the other names.other_names_match
- All wiki pages that link to the given wiki title.linked_to
- All wiki pages that do not link to the given wiki title.not_linked_to
- Hides all deleted wikis (boolean syntax).hide_deleted- Shortcut for
search[is_deleted]=false
- Shows wikis based on the presence of other names (boolean syntax).other_names_present- Shortcut for
(TRUE) andsearch[other_name_count]=>0
(FALSE)search[other_name_count]=0
- Sets the order of results.order
- Alphabetical order on the title.title
- Orders by post count.post_count
Show
[table]
[tbody]
[tr]
[td]HTTP Method[/td]
[td]GET[/td]
[/tr]
[tr]
[td]Base URL[/td]
[td]
/wiki_pages/$id.json[/td][/tr]
[tr]
[td]Type[/td]
[td]read request[/td]
[/tr]
[tr]
[td]Description[/td]
[td]
$id is the wiki page ID or title.[/td][/tr]
[/tbody]
[/table]
Create
[table]
[tbody]
[tr]
[td]HTTP Method[/td]
[td]POST[/td]
[/tr]
[tr]
[td]Base URL[/td]
[td]
/wiki_pages.json[/td][/tr]
[tr]
[td]Type[/td]
[td]write request[/td]
[/tr]
[/tbody]
[/table]
Create parameters
- Required:
title- Optional
body
- Uses URL array parameter format.other_names
- Space delimited list of post IDs.other_names_stringis_deletedis_locked
Update
[table]
[tbody]
[tr]
[td]HTTP Method[/td]
[td]PUT/PATCH[/td]
[/tr]
[tr]
[td]Base URL[/td]
[td]
/wiki_pages/$id.json[/td][/tr]
[tr]
[td]Type[/td]
[td]write request[/td]
[/tr]
[tr]
[td]Description[/td]
[td]
$id is the wiki page ID or title.[/td][/tr]
[/tbody]
[/table]
Update parameters
Accepts the "same parameters":[#dtext-create-parameters] as the "create wiki page action":[#dtext-create]. All parameters are optional.
Delete
[table]
[tbody]
[tr]
[td]HTTP Method[/td]
[td]DELETE[/td]
[/tr]
[tr]
[td]Base URL[/td]
[td]
/wiki_pages/$id.json[/td][/tr]
[tr]
[td]Type[/td]
[td]write request[/td]
[/tr]
[tr]
[td]Description[/td]
[td]
$id is the wiki page ID or title.[/td][/tr]
[/tbody]
[/table]
Note: This action can also be accomplished using the "update wiki page action":[#dtext-update] by setting
is_deleted to true.
Revert
[table]
[tbody]
[tr]
[td]HTTP Method[/td]
[td]PUT[/td]
[/tr]
[tr]
[td]Base URL[/td]
[td]
/wiki_pages/$id/revert.json[/td][/tr]
[tr]
[td]Type[/td]
[td]write request[/td]
[/tr]
[tr]
[td]Description[/td]
[td]
$id is the wiki page ID or title.[/td][/tr]
[/tbody]
[/table]
Revert parameters
- Required:
- version_id - The wiki page version ID to revert to.
See also
External links
[table]
[tbody]
[tr]
[td]Controller[/td]
[td]
[td][/td]
[/tr]
[tr]
[td]Model[/td]
[td]
[/tr]
[tr]
[td]Policy[/td]
[td]
[/tr]
[/tbody]
[/table]