Get dictionary terms by value
POST https://{{host}}/nuxeo/site/automation/Directory.ReadEntries/
Get terms of a dictionary.
Permissions
The user will only be able to get the terms from the dictionaries of their teams.
Mandatory data
This web service requires at least:
"params" -> "directoryName"
"params" -> "entries"
Params
directoryName
Name of the dictionary of the terms. Property name
of the dictionary.
entries
List of values of the terms to be obtained, defined as follows:
[{ "id": "<term_value1>" }, {"id": "<term_value2"}, ...]
Where term_value1
and term_value2
are the values of two differents terms of the dictionary.
Request Body
{"params"=>{"directoryName"=>"dictionary1", "entries"=>[{"id"=>"value1"}, {"id"=>"value2"}]}}
RESPONSES
status: OK
[{"id":"Term 2","label":"Term 2"},{"id":"Term 1","label":"Term 1"}]