chore: updated bru files

This commit is contained in:
Anoop M D 2023-01-14 04:21:57 +05:30
parent f0269069d2
commit 55f85e3728
3 changed files with 97 additions and 57 deletions

View File

@ -10,11 +10,11 @@ params
1 message hello
/params
headers(description=true)
1 content-type "Content Type" application/json
1 accept-language "" en-US,en;q=0.9,hi;q=0.8
0 transaction-id "The transaction ID" {{transactionId}}
/params
headers
1 content-type application/json
1 accept-language en-US,en;q=0.9,hi;q=0.8
0 transaction-id {{transactionId}}
/headers
body-mode json
@ -70,9 +70,9 @@ response-example
name Created
status 201
headers
1 content-type "Content Type" application/json
1 accept-language "" en-US,en;q=0.9,hi;q=0.8
0 transaction-id "The transaction ID" {{transactionId}}
1 content-type application/json
1 accept-language en-US,en;q=0.9,hi;q=0.8
0 transaction-id {{transactionId}}
/headers
body

View File

@ -3,6 +3,7 @@ type http-request
name Send Bulk SMS
method GET
url https://api.textlocal.in/bulk_json?apiKey=secret=&numbers=919988776655&message=hello&sender=600010
body-mode json
params
1 apiKey secret
@ -10,13 +11,11 @@ params
1 message hello
/params
headers(description=true)
1 content-type "Content Type" application/json
1 accept-language "" en-US,en;q=0.9,hi;q=0.8
0 transaction-id "The transaction ID" {{transactionId}}
/params
body-mode json
headers
1 content-type application/json
1 accept-language en-US,en;q=0.9,hi;q=0.8
0 transaction-id {{transactionId}}
/headers
body(type=json)
{
@ -62,6 +61,10 @@ assert
}
/assert
readme
Documentation about the request
/readme
vars
1 petId $res.data.id
/vars
@ -70,9 +73,9 @@ response-example
name Created
status 201
headers
1 content-type "Content Type" application/json
1 accept-language "" en-US,en;q=0.9,hi;q=0.8
0 transaction-id "The transaction ID" {{transactionId}}
1 content-type application/json
1 accept-language en-US,en;q=0.9,hi;q=0.8
0 transaction-id {{transactionId}}
/headers
body
@ -96,7 +99,3 @@ body
}
/body
/response-example
readme
Documentation about the request
/readme

View File

@ -1,6 +1,47 @@
const bruToJson = (input) => {
};
const a = {
"ver": "1.0",
"type": "http-request",
"name": "Send Bulk SMS",
"method": "GET",
"url": "https://api.textlocal.in/bulk_json?apiKey=secret=&numbers=919988776655&message=hello&sender=600010",
"params": [{
"enabled": true,
"key": "apiKey",
"value": "secret"
}, {
"enabled": true,
"key": "numbers",
"value": "998877665"
}, {
"enabled": true,
"key": "message",
"value": "hello"
}],
"headers": [{
"enabled": true,
"key": "Content-Type",
"value": "application/json"
}, {
"enabled": true,
"key": "Accept-Language",
"value": "en-US,en;q=0.9,hi;q=0.8"
}, {
"enabled": false,
"key": "transaction-id",
"value": "{{transactionId}}"
}],
"body": {
"mode": "json",
"json": "{\n \"apikey: \"secret\",\n \"numbers: \"+91998877665\",\n \"data: {\n \"sender: \"TXTLCL\",\n \"messages: [{\n \"numbers: \"+91998877665\",\n \"message: \"Hello World\"\n }]\n }\n}",
"graphql": "{\n launchesPast {\n launch_site {\n site_name\n }\n launch_success\n }\n}",
}
}
export {
bruToJson