Hi Ramesh,
Did the support for $expand go into into 8.11 Final? Appreciate your help on this.
My Syntax is :
http://10.47.86.130:8080/odata/FirePanels2.1/FirePanels(1)?$expand=SoftwareUnits
I get this as my response. The SoftwareUnits entity is related to FirePanels entity by pkey.
{
"d" : {
"__metadata" : {
"uri" : "http://10.47.86.130:8080/odata/FirePanels2.1/FirePanels.FirePanels(1L)", "type" : "FirePanels.FirePanels"
}, "pkey" : "1", "keySerialModel" : "asset-one", "assetType" : "FirePanel", "SoftwareUnits" : {
"__deferred" : {
"uri" : "http://10.47.86.130:8080/odata/FirePanels2.1/FirePanels.FirePanels(1L)/SoftwareUnits"
}
}
}
}
Server Logs if its of any help:
13:49:30,409 INFO [org.odata4j.producer.resources.EntityRequestResource] (http-/10.47.86.130:8080-5) null getEntity(FirePanels,(1),SoftwareUnits,null)
13:49:31,074 INFO [org.odata4j.producer.resources.EntityRequestResource] (http-/10.47.86.130:8080-5) null getEntity(FirePanels,(1),SoftwareUnits,null)
13:49:31,577 INFO [org.odata4j.producer.resources.EntityRequestResource] (http-/10.47.86.130:8080-5) null getEntity(FirePanels,(1),SoftwareUnits,null)
Van Halbert <vhalbert@redhat.com> changed the Status of bug 1293994 from NEW to CLOSED