![]() ![]() 4 Filteringįilters are applied by appending a $filter=. For example: ?$count=true.įor OData 3, by setting the $inlinecount query option to allpages, a count of the number of items returned will be included in the result. 3.2 (Inline) Countįor OData 4, by setting the $count query option to true, a count of the number of items returned will be included in the result. For example: /odata/myservice/v1/Exployees/$count. ![]() ![]() In this case, the result is an integer which is the number of objects. You can find out how many objects there are by passing the $count query option. 3 Counting the Number of Objects 3.1 Retrieving a Count of Objects For example: /odata/myservice/v1/Exployees?$expand=Cars,Address($expand=City) (OData 4) or /odata/myservice/v1/Exployees?$expand=Cars,Address/City (OData 3). 2.3 Retrieving Associated ObjectsĪssociated objects can be retrieved by passing the $expand query parameter. 2.2 Retrieving a Single ObjectĪ single object can be retrieved by passing the object identifier in the URI. You can see this if you specify the URI in a browser. For example: /odata/myservice/v1/Exployees. 2 Retrieving Objects 2.1 Retrieving All ObjectsĪll objects can be retrieved by specifying the URI. We currently only support the options described here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |