mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-05 14:20:50 +01:00
126 lines
2.5 KiB
JSON
126 lines
2.5 KiB
JSON
{
|
|
"meta": {
|
|
"name": "Send Bulk SMS",
|
|
"type": "http",
|
|
"seq": "1"
|
|
},
|
|
"http": {
|
|
"method": "get",
|
|
"url": "https://api.textlocal.in/send/",
|
|
"body": "json"
|
|
},
|
|
"query": [{
|
|
"name": "apiKey",
|
|
"value": "secret",
|
|
"enabled": true
|
|
}, {
|
|
"name": "numbers",
|
|
"value": "998877665",
|
|
"enabled": true
|
|
}, {
|
|
"name": "message",
|
|
"value": "hello",
|
|
"enabled": false
|
|
}],
|
|
"headers": [
|
|
{
|
|
"name": "content-type",
|
|
"value": "application/json",
|
|
"enabled": true
|
|
},
|
|
{
|
|
"name": "Authorization",
|
|
"value": "Bearer 123",
|
|
"enabled": true
|
|
},
|
|
{
|
|
"name": "transaction-id",
|
|
"value": "{{transactionId}}",
|
|
"enabled": false
|
|
}
|
|
],
|
|
"body": {
|
|
"json": "{\n \"hello\": \"world\"\n}",
|
|
"text": "This is a text body",
|
|
"xml": "<xml>\n <name>John</name>\n <age>30</age>\n</xml>",
|
|
"graphql": {
|
|
"query": "{\n launchesPast {\n launch_site {\n site_name\n }\n launch_success\n }\n}",
|
|
"variables": "{\n \"limit\": 5\n}"
|
|
},
|
|
"formUrlEncoded": [
|
|
{
|
|
"name": "apikey",
|
|
"value": "secret",
|
|
"enabled": true
|
|
},
|
|
{
|
|
"name": "numbers",
|
|
"value": "+91998877665",
|
|
"enabled": true
|
|
},
|
|
{
|
|
"name": "message",
|
|
"value": "hello",
|
|
"enabled": false
|
|
}
|
|
],
|
|
"multipartForm": [
|
|
{
|
|
"name": "apikey",
|
|
"value": "secret",
|
|
"enabled": true
|
|
},
|
|
{
|
|
"name": "numbers",
|
|
"value": "+91998877665",
|
|
"enabled": true
|
|
},
|
|
{
|
|
"name": "message",
|
|
"value": "hello",
|
|
"enabled": false
|
|
}
|
|
]
|
|
},
|
|
"vars": [
|
|
{
|
|
"name": "token",
|
|
"value": "$res.body.token",
|
|
"local": false,
|
|
"enabled": true
|
|
},
|
|
{
|
|
"name": "petId",
|
|
"value": "$res.body.id",
|
|
"local": false,
|
|
"enabled": false
|
|
},
|
|
{
|
|
"name": "orderNumber",
|
|
"value": "$res.body.orderNumber",
|
|
"local": true,
|
|
"enabled": true
|
|
},
|
|
{
|
|
"name": "transactionId",
|
|
"value": "$res.body.transactionId",
|
|
"local": true,
|
|
"enabled": false
|
|
}
|
|
],
|
|
"assert": [
|
|
{
|
|
"name": "$res.status",
|
|
"value": "200",
|
|
"enabled": true
|
|
},
|
|
{
|
|
"name": "$res.body.message",
|
|
"value": "success",
|
|
"enabled": false
|
|
}
|
|
],
|
|
"script": "const foo = 'bar';",
|
|
"tests": "function onResponse(request, response) {\n expect(response.status).to.equal(200);\n}",
|
|
"docs": "This request needs auth token to be set in the headers."
|
|
} |