The returned object must have a property with the following attribute, System.ComponentModel.DataAnnotations.KeyAttribute attribute, which acts as the key. The entity method must have a parameter with the [ExposedKey] attribute. The following example shows the EntitySet and child Entity:
This server code is represented in SmartPlant Foundation using the following model XML:
These entity objects are exposed using the following GETs:
http://[Local Host]/spfserver/api/v1/ExposedEntitySet
http://[Local Host]/spfserver/api/v1/ExposedEntitySet('IdForObject')