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