Reeleezee GitHub page

Filtration

OData provides flexibility to filter the data retrieval. To achieve this, when a request URI is specified with a $filter system query option, it returns the results set of the matching filter criteria.

Examples:

  • Filtering results which have a city name starting with ‘Hi’: /api/v1/customers?$filter=startswith(City,’Hi’)
  • Request a list of products which have stock enabled: /api/v1/products?$filter=IsStockEnabled eq true

There is a wide range of operators supported in the expression language. These are shown in the following table: