Skip to content

Instantly share code, notes, and snippets.

Abhijit Kane abhijitkane

Block or report user

Report or block abhijitkane

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@abhijitkane
abhijitkane / petstore.json
Created Dec 3, 2018
Schemas in reverse order
View petstore.json
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Swagger Petstore",
"license": {
"name": "MIT"
}
},
"servers": [
View dbdump.js
pm.indexedDB.downloadAllData(pm.user.id, function() { pm.alerts.success('Saved');});
@abhijitkane
abhijitkane / script-uuid.js
Created Aug 2, 2016
Create a guid in postman script
View script-uuid.js
function S4() {
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
}
function guid() {
return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
}
var newGuid = guid();
@abhijitkane
abhijitkane / script_resolve.js
Created Jul 20, 2016
Resolving values in scripts
View script_resolve.js
var url = request.url;
_.forIn(environment, function(index, key) {
url = url.replace(new RegExp("{{"+key+"}}", 'g'), environment[key]);
});
console.log(url);
View runnerTest.csv
firstName lastName
cooper sen
darth vader
View test.postman_environment
{
"id": "0a95f7a4-7069-c204-3a92-32f9f2c570f2",
"name": "Test",
"values": [
{
"key": "username",
"value": "hello",
"type": "text"
},
{
@abhijitkane
abhijitkane / 0_reuse_code.js
Created Dec 30, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.