Supported Features
OData Features Supported in APM
OData Service Resource (Base URL): {{host}}/meridium/api/odata
The following OData features are supported:
Title | Description |
---|---|
Metadata | Generates metadata of the service ($metadata) |
EntityCollection | Returns the collection of entities for a family |
EntityById | Returns an entity identified by entity key |
Property | Returns the property of an entity identified by entity key |
Projected Entities | Returns selected properties of an entity ($select) |
Server-driven pagination | Queries the data by pages |
System queries | Basic system query options |
System Queries
The following system query options are supported on the root entity:
- $metadata (schema)
- $count
- $select (limited to depth level of 1)
- $filter
- $top
- $orderby
- $expand (to get relationship data, limited to depth level of 1)
- $skip
Functions
Function | Description |
---|---|
startswith | This function determines whether a string begins with the characters of a specified string, returning true or false as appropriate. It is used to filter data based on key words of a property.
|
endswith | This function determines whether a string ends with the characters of a specified string, returning true or false as appropriate. It is used to filter data based on key words of a property.
|
contains | This function determines whether a string contains the characters of a specified string, returning true or false as appropriate. It is used to filter data based on key words of a property.
|
round | This function rounds off a number to a specified number of decimal places. It is used to filter data by rounding off a decimal value for a property and compare with a given decimal value.
|
tolower | This function converts a string to lowercase letters. It is used to convert data of a property to lowercase and compare to a given word.
|
toupper | This function converts a string to uppercase letters. It is used to filter data by converting data to uppercase and compare with a given word.
|
floor | This function returns the largest integer value that is smaller than or equal to a number. It is used to filter data by rounding off to the floor value.
|
ceiling | This function returns the smallest integer value that is larger than or equal to a number. It is used to filter data by rounding off to the ceiling value.
|
year | This function returns the year in a given date (a number from 1000 to 9999). It is used to filter data based on a year.
|
month | This function returns the month part for a given date (a number from 1 to 12). It is used to filter data based on a month.
|
day | This function returns the day of the month (from 1 to 31) for a specified date. It is used to filter data based on a day.
|
length | This function returns the length of the string. It is used to filter data based on the length of the string.
|
trim | This function removes leading and trailing spaces from a string. It is used to ignore the leading and trailing spaces and filter the data.
|
Binary Operations
You can use the following binary operations in your query:
- Add
- And
- Divide
- Equal
- GreaterThan
- GreaterThanOrEqual
- LessThan
- LessThanOrEqual
- Multiply
- NotEqual
- Or
- Subtract
- Modulo