Skip to content

Instantly share code, notes, and snippets.

@h3xxx
Created May 11, 2020 13:29
Show Gist options
  • Save h3xxx/be7e12b496f061cbfad68ecad2828991 to your computer and use it in GitHub Desktop.
Save h3xxx/be7e12b496f061cbfad68ecad2828991 to your computer and use it in GitHub Desktop.
postman-visualizer.txt
BONUS: here's a test rule for POSTMAN that help you quickly copy/paste results (more info https://learning.postman.com/docs/postman/sending-api-requests/visualizer/):
var template = `
<table bgcolor="#FFFFFF">
<tr>
<td>Video</td>
<td>
{{#response.video}}
{{.}}
{{/response.video}}
</td>
</tr>
{{#each response.licence_server_map.drmLicenseUrlValues}}
<tr>
<td>{{drm}}</td>
<td>{{licenceUrl}}</td>
</tr>
{{/each}}
</table>`;
pm.visualizer.set(template, {
response: pm.response.json()
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment