In the construction of the Reeleezee API, we followed the OData v4 specifications. Open Data Protocol (OData) is a RESTful data access protocol initially defined by Microsoft. The protocol enables the creation and consumption of REST API’s which allow resources, identified using URL’s and defined in a data model, to be published and edited by Web clients using simple HTTP messages. It is not limited to relational databases.
Following are the supported system query options in Reeleezee API to get started:
xpand System Query Option – $expand
When a request URI is specified with $expand System query option, it expands the single property mentioned along with the option.
Request to expand the Address property:
Similarly, a request URI specified with $expand=* System query option, expands all the properties.
Request to expand all properties with:
Furthermore, there are a lot of other ways you can use depending on your requirements. Below are certain ways are specified for you to explore and experiment with:
Select System Query Option ($select)
To select a specific set of properties, use the $select system query option along with mentioning the properties to be retrieved in the request URI.
Request a list of products only showing the properties Description and Purchaseprice:
Expand System Query Option $expand and $select together:
A request URI can be created with multiple system query options to fetch specific data with specific level/property expansion.
Combining expand and select: