Filters

Filter Entity Data with query strings

Filters are query string parameters that can be combined to select only data that match some criteria. You can use filters both with GET All Data and Pagination strategies.

Of course you can provide multiple filters for different fields, and they are treated as AND filters.

Filters can be specialised according to its type, for example strings can be filtered with CONTAINS or START_WITH, while numbers and dates can be filtered by range or arithmetic operations.

Request

Endpoint

Equals filter (works for all the types)

GET <base_url>/data/{entity}?{fieldName_1}={fieldValue_1}&{fieldName_2}={fieldValue_2}

Contains filter (works for strings)

GET <base_url>/data/{entity}?{fieldName_1}[CONTAINS]={fieldValue_1}

{entity} is the Entity name according to the name provided in the schema{entity} is the Entity name according to the name provided in the schema

{fieldName} is the name of the field to filter

{fieldValue} is the value to search

Remember: you can use multiple filters (like filter1 and filter2).

OR filters

Or filters are allowed when you specify multiple values for the same field. For example you could query a filter that is equals to a value1 or a value2.

GET <base_url>/data/{entity}?{fieldName_1}={fieldValue_1}&{fieldName_1}={fieldValue_2}

Last updated