The following includes the details of how to interface with the wiki page version records through the API.
Record field format
[table]
[thead]
[tr]
[th]Name[/th]
[th]Type[/th]
[th]Details[/th]
[/tr]
[/thead]
[tbody]
[tr]
[td][code]id[/code][/td]
[td]integer[/td]
[td]>0[/td]
[/tr]
[tr]
[td][code]wiki_page_id[/code][/td]
[td]integer[/td]
[td]>0[/td]
[/tr]
[tr]
[td][code]title[/code][/td]
[td]string[/td]
[td]tag format[/td]
[/tr]
[tr]
[td][code]body[/code][/td]
[td]text[/td]
[td][/td]
[/tr]
[tr]
[td][code]other_names[/code][/td]
[td]array[/td]
[td]string[/td]
[/tr]
[tr]
[td][code]is_locked[/code][/td]
[td]boolean[/td]
[td][/td]
[/tr]
[tr]
[td][code]is_deleted[/code][/td]
[td]boolean[/td]
[td][/td]
[/tr]
[tr]
[td][code]updater_id[/code][/td]
[td]integer[/td]
[td]>0[/td]
[/tr]
[tr]
[td][code]created_at[/code][/td]
[td]timestamp[/td]
[td][/td]
[/tr]
[tr]
[td][code]updated_at[/code][/td]
[td]timestamp[/td]
[td][/td]
[/tr]
[tr]
[td][code]updater_addr_ip[/code][/td]
[td]inet[/td]
[td]Limited to Moderator+[/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][code]wiki_page[/code][/td]
[td]wiki page[/td]
[td]single[/td]
[td]required[/td]
[td][/td]
[/tr]
[tr]
[td][code]updater[/code][/td]
[td]user[/td]
[td]single[/td]
[td]required[/td]
[td][/td]
[/tr]
[tr]
[td][code]artist[/code][/td]
[td]artist[/td]
[td]single[/td]
[td]optional[/td]
[td][/td]
[/tr]
[tr]
[td][code]tag[/code][/td]
[td]tag[/td]
[td]single[/td]
[td]optional[/td]
[td][/td]
[/tr]
[/tbody]
[/table]
Nomenclature
- Plural form: "wiki_page_versions"
- Used in the URL pathname
- Singular form: "wiki_page_version"
- Unused
- Version of: API:Wiki Pages
Index
[table]
[tbody]
[tr]
[td]HTTP Method[/td]
[td]GET[/td]
[/tr]
[tr]
[td]Base URL[/td]
[td][code]/wiki_page_versions.json[/code][/td]
[/tr]
[tr]
[td]Type[/td]
[td]read request[/td]
[/tr]
[tr]
[td]Description[/td]
[td]The default order is ID descending.[/td]
[/tr]
[/tbody]
[/table]
Search attributes
All of the following are standard attributes with all of their available formats and qualifiers.
- Number syntax
- [code]id[/code]
- [code]updated_at[/code]
- String syntax
- [code]title[/code]
- Text syntax
- [code]body[/code]
- Boolean syntax
- [code]is_locked[/code]
- [code]is_deleted[/code]
- Array syntax
- [code]other_names[/code]
- User syntax
- [code]updater[/code]
- Chaining syntax
- [code]wiki_page[/code]
- [code]artist[/code]
- [code]tag[/code]
Special search parameters
- [code]title_matches[/code] - Case-insensitive normalized wildcard search on the title field.
- [code]body_matches[/code] - Case-insensitive normalized wildcard search on the body field.
See also
External links
[table]
[tbody]
[tr]
[td]Controller[/td]
[td]<https://github.com/danbooru/danbooru/blob/master/app/controllers/wiki_page_versions_controller.rb>[/td]
[td][/td]
[/tr]
[tr]
[td]Model[/td]
[td]<https://github.com/danbooru/danbooru/blob/master/app/models/wiki_page_version.rb>[/td]
[/tr]
[tr]
[td]Policy[/td]
[td]<https://github.com/danbooru/danbooru/blob/master/app/policies/wiki_page_version_policy.rb>[/td]
[/tr]
[/tbody]
[/table]