Get Insured form:

Get request:

1.    GET

Will return collection of Insureds.
Note: Use ‘()’ after the text url.

2.    GET{id})

Will return single Insured with specific Id.
Note: Id is Guid
        Don’t use quotes in the bracket.

3.    GET$select=id,firstName,addressLine1,phone

If you need to get specific properties from object model you can add select to URI.
Where after “$select=” place all the properties or collections you need.

Note: You can check the object and properties at:

4.     GET$filter=firstName eq 'Scott'

You can filter data by properties and get specific Insureds.
Another example:$filter=EMail eq ''
                  $filter=city eq 'New York'
You can filter by multiple predicates by keyword ‘and’ :$filter=city eq 'New York' and lastName eq 'Miller'

5.    GET

Order your data by specific property.
Note: For descending order append keyword ‘desc’: desc

6.    GET$skip=0&$top=5&$orderby=commercialName desc

For paging use $skip and $top.
Where $skip= will skip first numbers of entities, and $top= will take numbers of entities you need.
*make sure to always use $skip together with $orderby.$skip=5&$top=5&$orderby=commercialName desc

7.   You can combine any of following $select, $filter, $order, $skip, $top by placing ‘&’ between them:$select=id,firstName,addressLine1,phone,city&$orderby=firstName desc&$filter=city eq 'New York'&$skip=0&$top=20

8.    Or you can use $select= for specific Insured to get only desired properties:$select=id,firstName,addressLine1,phone,city

9.    GET$metadata#InsuredList

This is model description in XML format.

You can see how we build the url in our sample application:

The page is "SearchInsureds.aspx".