View saveToPDF.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let myPDFData = { | |
contract: Buffer.from(pm.response.json().contract, 'base64'), | |
reference: pm.response.json().reference | |
} | |
let template = ` | |
<script src="https://unpkg.com/jspdf@latest/dist/jspdf.min.js"></script> | |
<button onclick="savePDF()">Save To PDF</button> | |
View naughtyStrings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"naughtyValue": "" | |
}, | |
{ | |
"naughtyValue": "undefined" | |
}, | |
{ | |
"naughtyValue": "undef" | |
}, |
View Bootstrap_Styled_Table.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>My Awesome Template</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"> | |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="table-responsive"> | |
<table class="table table-striped table-bordered"> |
View Sample_Newman_Summary.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cursor": { | |
"position": 0, | |
"iteration": 0, | |
"length": 1, | |
"cycles": 1, | |
"empty": false, | |
"eof": false, | |
"bof": true, | |
"cr": false, |
View CheckAndSetAnAuthToken.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This can be placed in the Pre-requests on the collection level. | |
// It will check to see if certain valid variables are present in an environment file. | |
// If these are not present, it be go and get another valid token | |
// The 'AuthData' variable is a Base64 encoded client_id and client_secret | |
// This my need to be tweaked for your needs but the mechanism will work. | |
const moment = require('moment') | |
const getJWT = { | |
url: `${pm.environment.get('tokenBaseURL')}/Auth/connect/token`, |
View DynamicallyUnsetVariables.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cleanup() { | |
const clean = _.keys(pm.environment.toObject()) | |
_.each(clean, (arrItem) => { | |
if (arrItem.startsWith("some_prefix")) { | |
pm.environment.unset(arrItem) | |
} | |
}) | |
} | |
cleanup() |
View PurgeRabbitQueues.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var purgeQueue = (name, callback) => { | |
$.ajax({ | |
url: 'api/queues/<VHOST>/' + name + '/contents/', | |
type: 'DELETE', | |
success: callback | |
}) | |
} | |
$.ajax({ | |
url: '/api/queues/', |
View dummyUsers.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"users":[ | |
{ | |
"id":1, | |
"first_name":"Robby", | |
"last_name":"McGrale", | |
"email":"rmcgrale0@skype.com", | |
"gender":"Female", | |
"ip_address":"98.160.131.109" | |
}, |