- 22 Nov 2022
- 1 Minute to read
- Contributors
- Print
- DarkLight
- PDF
Cache Search API
- Updated on 22 Nov 2022
- 1 Minute to read
- Contributors
- Print
- DarkLight
- PDF
Cache Search API
The search API is used to return the list of insecure objects in the application, e.g. value domains, a list of users/groups, etc.
Identification is done by Constellio's token mechanics.
The following parameters can be passed during calls:
Description | Status | parameter |
---|---|---|
collection | The code of the collection to search. If not specified, the query is made in all collections. | Optional |
schemaType | The code of the schema type to return, for example, group. The schema type must be contained in the server cache and must not be secure. | Obligatory |
Fl | This setting allows you to limit the metadata to be displayed, such as id and title. | Obligatory |
Example
Call
http://localhost:7070/constellio/cachedSelect?token=dac2fbe9-3635-11eb-8c29-df0134b862f2&serviceKey=agent_admin&collection=zeCollection&schemaType=group&fl=id code title
Answer
{
"00000000049": {
"id": "00000000049",
"code": "adm",
"title": "Admins"
},
"00000000050": {
"id": "00000000050",
"code": "rgd",
"title": "RGD"
},
"00000000051": {
"id": "00000000051",
"code": "users",
"title": "Users"
}
}