Web Services Reference for Oracle Billing Insight > Examples of Web Services > Examples of the Hierarchy Web Service >

Example of Getting a List of Child Nodes


This example shows you how to use the hierarchy Web service to returns a list of child nodes for a particular node, and a node index.

Operation

Use the following operation to get a list of child nodes for a node:

GET /hierarchies/{hierarchyId}/nodes/{nodeid}/children

Sample URL

The following is a sample URL for this Web service example:

http://myhost.example.com:7017/rs/api/v2/hierarchies/103041/nodes/103042/children

XML Response

The following is an example of the XML response:

<hierarchyNodeList>
<count>2</count>
<hierarchyNode>
<nodeId>103042</nodeId>
<hierarchyId>103041</hierarchyId>
<nodeName>Del24410</nodeName>
<linkTargetType>edx:hierarchy:folder:</linkTargetType>
<linkTargetURI>edx:hierarchy:folder:Dutch Home Insurance_Del24410
</linkTargetURI>
<linkTargetExternalKey>Dutch Home Insurance_Del24410
</linkTargetExternalKey>
</hierarchyNode>
<hierarchyNode>
<nodeId>103043</nodeId>
<hierarchyId>103041</hierarchyId>
<parentId>103042</parentId>
<nodeName>GName</nodeName>
<linkTargetType>edx:hierarchy:folder:</linkTargetType>
<linkTargetURI>edx:hierarchy:folder:GID1</linkTargetURI>
<linkTargetExternalKey>GID1</linkTargetExternalKey>
</hierarchyNode>
</hierarchyNodeList>

Web Services Reference for Oracle Billing Insight Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.