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

Example of Getting a List of Hierarchies by Type


This example shows you how to use the hierarchy Web service to get a list of hierarchies by hierarchy type, that the authenticated user can access.

Operation

Use the following operation to get a list of hierarchies by type, for a user:

GET /hierarchies/{hierarchyID/{hierarchyId}/nodes/{nodeId}

Sample URL

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

http://myhost.example.com:7017/rs/api/v2/hierarchies?hierarchyType=BILLING</href>

XML Response

The following is an example of the XML response:

<hierarchyList>
<links>
<rel>self</rel>
<href>http://hostname.example.com:7017/rs/api/v2
/hierarchies?hierarchyType=BILLING</href>
</links>
<count>1</count>
<items>
<links>
<rel>rootNodes</rel>
<href>http://hostname.example.com:7017/rs/api/v2/hierarchies
/8000/myRootNodes</href>
</links>
<links>
<rel>self</rel>
<href>http://hostname.example.com:7017/rs/api/v2/hierarchies/8000</href>
</links>
<hierarchyId>8000</hierarchyId>
<hierName>Billing Hierarchy</hierName>
<displayName>hierarchy.label.name.billingHierarchy</displayName>
<description>Cuelle Mobile Corporation</description>
<hierType>BILLING</hierType>
<company>CUELLE</company>
</items>
</hierarchyList>

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