https://<CPI Tenant URL Without ITSpaces>/api/v1/IntegrationConnections?$expand=IntegrationFlows&$filter=ResolvedConnection eq true&$inlinecount=allpages
https://XXX-tmn.hci.eu1.hana.ondemand.com/api/v1/IntegrationConnections?$expand=IntegrationFlows&$fi... eq true&$inlinecount=allpages&$format=json
Now click on "Send".
If everything goes well, you will get the result in a JSON format.
Although JSON is quite readable, it is not really nice, so we'll now "beautify" this answer using the visualisation feature of Postman.
As said before, Postman provides means to visualise data using handlebar templates.
var template = `
<p style="font-size:18px">Total number of connections = {{response.d.__count}}</p>
<p style="font-size:18px">Connection overview</p>
<table style="background-color: #CCCCCC;width: 90%;padding:10px">
<tr style="background-color: #F0AB00;">
<th style="width:40%;padding:2pt;"><p style="font-size:14px">Id</p></th>
<th style="width:40%;padding:2pt;"><p style="font-size:14px">Sender</p></th>
<th style="width:40%;padding:2pt;"><p style="font-size:14px">Receiver</p></th>
</tr>
{{#each response.d.results}}
<tr>
<td style="width:40%;padding:2pt;"><p style="font-size:14px">{{Id}}</p></td>
<td style="width:40%;padding:2pt;"><p style="font-size:14px">{{SenderHost}}</p></td>
<td style="width:40%;padding:2pt;"><p style="font-size:14px">{{ReceiverHost}}</p></td>
</tr>
{{/each}}
</table>
<p style="font-size:18px">Details</p>
{{#each response.d.results}}
<p style="font-size:16px">Connection <b>#{{Id}}</b> between <b>{{SenderHost}}</b> and <b>{{ReceiverHost}}</b> found in following iFlows:</b><p>
<table style="background-color: #CCCCCC;width: 90%;padding:10px">
<tr style="background-color: #F0AB00;">
<th style="width:40%;padding:2pt;"><p style="font-size:14px">iFlow ID (iFlow Name)</p></th>
<th style="width:40%;padding:2pt;"><p style="font-size:14px">Sender Host Type</p></th>
<th style="width:30%;padding:2pt;"><p style="font-size:14px">Receiver Host Type</p></th>
</tr>
{{#each IntegrationFlows.results}}
<tr">
<td style="width:40%;padding:2pt;"><p style="font-size:14px">{{Id}}<br>({{Name}})</p></td>
<td style="width:40%;padding:2pt;"><p style="font-size:14px">{{SenderHostType}}</p></td>
<td style="width:40%;padding:2pt;"><p style="font-size:14px">{{ReceiverHostType}}</p></td>
</tr>
{{/each}}
</table>
{{/each}}
`;
pm.visualizer.set(template, {
response: pm.response.json()
});
var template = `
<p style="font-size:18px">Total number of connections = {{response.d.__count}}</p>
<b>Connection description; iFlow ID; iFLow Name; Sender Host Type; Receiver Host Type</b><br>
{{#each response.d.results}}
{{#each IntegrationFlows.results}}
{{../SenderHost}} to {{../ReceiverHost}};{{Id}};{{Name}};{{SenderHostType}};{{ReceiverHostType}}<br>
{{/each}}
{{/each}}
`;
pm.visualizer.set(template, {
response: pm.response.json()
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
8 | |
8 | |
8 | |
8 | |
8 | |
8 | |
7 | |
7 |