Create a gist now

Instantly share code, notes, and snippets.

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": []
}
]
}
]
}