Skip to content

Instantly share code, notes, and snippets.

@nzpcmad
Created January 17, 2017 19:36
Show Gist options
  • Save nzpcmad/833b0a0009b1357ed37ebf6f3e422fc7 to your computer and use it in GitHub Desktop.
Save nzpcmad/833b0a0009b1357ed37ebf6f3e422fc7 to your computer and use it in GitHub Desktop.
WebAPI multiple POST
{
"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