Cache Search API
  • 22 Nov 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Cache Search API

  • Dark
    Light
  • PDF

Article summary

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:


DescriptionStatusparameter
collectionThe code of the collection to search. If not specified, the query is made in all collections.Optional
schemaTypeThe 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
FlThis 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"        
    }
}


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.