Created
January 17, 2017 19:36
-
-
Save nzpcmad/833b0a0009b1357ed37ebf6f3e422fc7 to your computer and use it in GitHub Desktop.
WebAPI multiple POST
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
{ | |
"variables": [], | |
"info": { | |
"name": "Maths WebAPI", | |
"_postman_id": "47568f67-6685-f39a-8d7f-2cd76a9b281a", | |
"description": "", | |
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Add", | |
"description": "", | |
"item": [ | |
{ | |
"name": "http://localhost:44571/api/Maths/Add", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"type": "text/javascript", | |
"exec": [ | |
"tests[\"Status code is 200\"] = responseCode.code === 200;" | |
] | |
} | |
} | |
], | |
"request": { | |
"url": "http://localhost:44571/api/Maths/Add", | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/x-www-form-urlencoded", | |
"description": "" | |
} | |
], | |
"body": { | |
"mode": "urlencoded", | |
"urlencoded": [ | |
{ | |
"key": "number1", | |
"value": "2", | |
"type": "text", | |
"enabled": true | |
}, | |
{ | |
"key": "number2", | |
"value": "4", | |
"type": "text", | |
"enabled": true | |
} | |
] | |
}, | |
"description": "" | |
}, | |
"response": [] | |
} | |
] | |
}, | |
{ | |
"name": "Multiply", | |
"description": "", | |
"item": [ | |
{ | |
"name": "http://localhost:44571/api/Maths/Multiply", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"type": "text/javascript", | |
"exec": [ | |
"tests[\"Status code is 200\"] = responseCode.code === 200;" | |
] | |
} | |
} | |
], | |
"request": { | |
"url": "http://localhost:44571/api/Maths/Multiply", | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/x-www-form-urlencoded", | |
"description": "" | |
} | |
], | |
"body": { | |
"mode": "urlencoded", | |
"urlencoded": [ | |
{ | |
"key": "number1", | |
"value": "2", | |
"type": "text", | |
"enabled": true | |
}, | |
{ | |
"key": "number2", | |
"value": "4", | |
"type": "text", | |
"enabled": true | |
} | |
] | |
}, | |
"description": "" | |
}, | |
"response": [] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://nzpcmad.blogspot.co.nz/2017/01/webapi-using-swagger-and-postman-with.html