bruno/packages/bruno-lang/tests/fixtures/request.bru

60 lines
910 B
Plaintext
Raw Normal View History

2023-01-14 15:46:09 +01:00
name Send Bulk SMS
method GET
url https://api.textlocal.in/bulk_json?apiKey=secret=&numbers=919988776655&message=hello&sender=600010
type http-request
2023-01-14 15:46:09 +01:00
body-mode json
2023-01-20 21:26:30 +01:00
seq 1
2023-01-14 15:46:09 +01:00
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)
{
"apikey": "secret",
"numbers": "+91998877665"
}
/body
2023-01-14 23:21:48 +01:00
body(type=graphql)
{
launchesPast {
launch_success
}
}
/body
body(type=text)
Hello, there. You must be from the past
/body
body(type=xml)
<body>back to the ice age</body>
/body
body(type=form-url-encoded)
1 username john
0 password {{password}}
/body
body(type=multipart-form)
1 username nash
0 password governingdynamics
/body
2023-01-22 19:09:16 +01:00
script
const foo='bar';
/script
tests
bruno.test('200 ok', () => {});
/tests