-
Type:
Task
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: V4.0_WD01
-
Fix Version/s: V4.0_WD01
-
Component/s: URL Conventions
-
Labels:None
-
Environment:
[Closed]
-
Resolution:
I would like to seek clarification on below scenario....
Suppose, I have 3 entity types 1) VirtualSystem 2) HyperVSystem and 3) VMWareSystem. Here, VirtualSystem is the base EntityType for both HyperVSystem and VMWareSystem. Now, if I define EntityContainer having only EnitySet for VirtualSystem. Are the following URLs correct?
1) http://host/service/VirtualSystems
Returns only instances of EntityType VirtualSystem
2) http://host/service/VirtualSystems/HyperVSystem
Returns only instances of EntityType HyperVSystem
3) http://host/service/VirtualSystems/VMWareSystem
Returns only instances of EntityType VMWareSystem
How to get all instances of VirtualSystem, HyperVSystem and VMWareSystem in a single query?
http://host/service/VirtualSystems will return all instances of VirtualSystem, HyperVSystem and VMWareSystem in a single query.
http://host/service/VirtualSystems/Model.HyperVSystem will restrict to instances of type "HyperVSystem" in schema "Model", and instances of any type that further specializes Model.HyperVSystem.
http://host/service/VirtualSystems/Model.VMWareSystem will similarly restrict to instances of Model.VMWareSystem and its specializations.
This is described in URL Conventions, section 4.9 Addressing Derived Types.
We don't have a way to only request instances of Model.VirtualSystem that are not also instances of a derived type.
If you are satisfied with this, please close the issue.