mirror of
https://github.com/usebruno/bruno.git
synced 2025-08-19 09:32:47 +02:00
chore: updated bru files
This commit is contained in:
@@ -10,11 +10,11 @@ params
|
|||||||
1 message hello
|
1 message hello
|
||||||
/params
|
/params
|
||||||
|
|
||||||
headers(description=true)
|
headers
|
||||||
1 content-type "Content Type" application/json
|
1 content-type application/json
|
||||||
1 accept-language "" en-US,en;q=0.9,hi;q=0.8
|
1 accept-language en-US,en;q=0.9,hi;q=0.8
|
||||||
0 transaction-id "The transaction ID" {{transactionId}}
|
0 transaction-id {{transactionId}}
|
||||||
/params
|
/headers
|
||||||
|
|
||||||
body-mode json
|
body-mode json
|
||||||
|
|
||||||
@@ -70,9 +70,9 @@ response-example
|
|||||||
name Created
|
name Created
|
||||||
status 201
|
status 201
|
||||||
headers
|
headers
|
||||||
1 content-type "Content Type" application/json
|
1 content-type application/json
|
||||||
1 accept-language "" en-US,en;q=0.9,hi;q=0.8
|
1 accept-language en-US,en;q=0.9,hi;q=0.8
|
||||||
0 transaction-id "The transaction ID" {{transactionId}}
|
0 transaction-id {{transactionId}}
|
||||||
/headers
|
/headers
|
||||||
|
|
||||||
body
|
body
|
||||||
|
@@ -3,76 +3,79 @@ type http-request
|
|||||||
name Send Bulk SMS
|
name Send Bulk SMS
|
||||||
method GET
|
method GET
|
||||||
url https://api.textlocal.in/bulk_json?apiKey=secret=&numbers=919988776655&message=hello&sender=600010
|
url https://api.textlocal.in/bulk_json?apiKey=secret=&numbers=919988776655&message=hello&sender=600010
|
||||||
|
|
||||||
params
|
|
||||||
1 apiKey secret
|
|
||||||
1 numbers 998877665
|
|
||||||
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
|
body-mode json
|
||||||
|
|
||||||
|
params
|
||||||
|
1 apiKey secret
|
||||||
|
1 numbers 998877665
|
||||||
|
1 message hello
|
||||||
|
/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(type=json)
|
body(type=json)
|
||||||
{
|
{
|
||||||
apikey: "secret",
|
apikey: "secret",
|
||||||
numbers: "+91998877665",
|
numbers: "+91998877665",
|
||||||
data: {
|
data: {
|
||||||
sender: "TXTLCL",
|
sender: "TXTLCL",
|
||||||
messages: [{
|
messages: [{
|
||||||
numbers: "+91998877665",
|
numbers: "+91998877665",
|
||||||
message: "Hello World"
|
message: "Hello World"
|
||||||
}]
|
}]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
/body
|
/body
|
||||||
|
|
||||||
body(type=graphql)
|
body(type=graphql)
|
||||||
{
|
{
|
||||||
launchesPast {
|
launchesPast {
|
||||||
launch_site {
|
launch_site {
|
||||||
site_name
|
site_name
|
||||||
|
}
|
||||||
|
launch_success
|
||||||
}
|
}
|
||||||
launch_success
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
/body
|
/body
|
||||||
|
|
||||||
script
|
script
|
||||||
let user = 'John Doe';
|
let user = 'John Doe';
|
||||||
|
|
||||||
function onRequest(request) {
|
function onRequest(request) {
|
||||||
request.body.user = user;
|
request.body.user = user;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onResponse(request, response) {
|
function onResponse(request, response) {
|
||||||
expect(response.status).to.equal(200);
|
expect(response.status).to.equal(200);
|
||||||
}
|
}
|
||||||
/script
|
/script
|
||||||
|
|
||||||
assert
|
assert
|
||||||
{
|
{
|
||||||
"$res.data.order.items.length": 1,
|
"$res.data.order.items.length": 1,
|
||||||
"$res.data.orderNumber.isDefined": true
|
"$res.data.orderNumber.isDefined": true
|
||||||
}
|
}
|
||||||
/assert
|
/assert
|
||||||
|
|
||||||
|
readme
|
||||||
|
Documentation about the request
|
||||||
|
/readme
|
||||||
|
|
||||||
vars
|
vars
|
||||||
1 petId $res.data.id
|
1 petId $res.data.id
|
||||||
/vars
|
/vars
|
||||||
|
|
||||||
response-example
|
response-example
|
||||||
name Created
|
name Created
|
||||||
status 201
|
status 201
|
||||||
headers
|
headers
|
||||||
1 content-type "Content Type" application/json
|
1 content-type application/json
|
||||||
1 accept-language "" en-US,en;q=0.9,hi;q=0.8
|
1 accept-language en-US,en;q=0.9,hi;q=0.8
|
||||||
0 transaction-id "The transaction ID" {{transactionId}}
|
0 transaction-id {{transactionId}}
|
||||||
/headers
|
/headers
|
||||||
|
|
||||||
body
|
body
|
||||||
@@ -95,8 +98,4 @@ body
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/body
|
/body
|
||||||
/response-example
|
/response-example
|
||||||
|
|
||||||
readme
|
|
||||||
Documentation about the request
|
|
||||||
/readme
|
|
@@ -1,6 +1,47 @@
|
|||||||
const bruToJson = (input) => {
|
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 {
|
export {
|
||||||
bruToJson
|
bruToJson
|
||||||
|
Reference in New Issue
Block a user