Hi
How can I encode gzip from REST response
I send the following request
GET: http://214.121.11.4/api/rest/integrations/infi/dde_nodes
In the response one of the field is gzip: “H4sIAAAAAAAACivJyCxWAKJEhZLU4hIA6uceDQ4AAAA=”
In the test field I entered the following:
const template = `
<table>
<tr>
<th>Test</th>
<th>Node_ID</th>
<th>DDE_cr_policy</th>
</tr>
{{#each response.result}}
<tr>
<td>Node - {{node_id}}</td>
<td>{{dde_cr_policy}}</td>
</tr>
{{/each}}
</table>
`;
pm.visualizer.set(template, {
response: JSON.parse(responseBody)
});
And the visualize return:
|Node - 1|H4sIAAAAAAAACivJyCxWAKJEhZLU4hIA6uceDQ4AAAA=|
|Node - 2|H4sIAAAAAAAACivJyCxWAKJEhZLU4hIA6uceDQ4AAAA=|
How can I get the decode gzip and see the table as follow:
|Node - 1|This is a test|
|Node - 2|this is a test|