DictionaryApi
extends AbstractApi
in package
Project dictionaries hold the words that spellcheck should accept for each language.
Table of Contents
Methods
- list() : ModelCollection
- List Dictionaries
- update() : Dictionary|null
- Edit Dictionary
Methods
list()
List Dictionaries
public
list(int $projectId[, array<string|int, mixed> $params = [] ]) : ModelCollection
Parameters
- $projectId : int
- $params : array<string|int, mixed> = []
-
string $params[languageIds] Comma-separated list of language identifiers
Tags
Return values
ModelCollectionupdate()
Edit Dictionary
public
update(int $projectId, string $languageId, array<string|int, mixed> $data) : Dictionary|null
Parameters
- $projectId : int
- $languageId : string
- $data : array<string|int, mixed>
-
JSON Patch array. op: add or remove, path: /words/{index}, value: word (for add)