mirror of
https://github.com/usebruno/bruno.git
synced 2025-07-11 01:35:28 +02:00
chore: updated bru files formatting
This commit is contained in:
packages/bru-file/docs
@ -5,15 +5,15 @@ 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
|
params
|
||||||
1 apiKey secret
|
1 apiKey secret
|
||||||
1 numbers 998877665
|
1 numbers 998877665
|
||||||
1 message hello
|
1 message hello
|
||||||
/params
|
/params
|
||||||
|
|
||||||
headers
|
headers
|
||||||
1 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 {{transactionId}}
|
0 transaction-id {{transactionId}}
|
||||||
/headers
|
/headers
|
||||||
|
|
||||||
body-mode json
|
body-mode json
|
||||||
@ -44,39 +44,43 @@ body(type=graphql)
|
|||||||
/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
|
||||||
|
|
||||||
vars
|
vars
|
||||||
1 petId $res.data.id
|
1 petId $res.data.id
|
||||||
/vars
|
/vars
|
||||||
|
|
||||||
response-example
|
readme
|
||||||
name Created
|
Documentation about the request
|
||||||
status 201
|
/readme
|
||||||
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
|
response-example
|
||||||
{
|
name Created
|
||||||
|
status 201
|
||||||
|
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
|
||||||
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"launchesPast": [
|
"launchesPast": [
|
||||||
{
|
{
|
||||||
@ -93,10 +97,6 @@ body
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/body
|
/body
|
||||||
/response-example
|
/response-example
|
||||||
|
|
||||||
readme
|
|
||||||
Documentation about the request
|
|
||||||
/readme
|
|
@ -61,25 +61,25 @@ assert
|
|||||||
}
|
}
|
||||||
/assert
|
/assert
|
||||||
|
|
||||||
readme
|
|
||||||
Documentation about the request
|
|
||||||
/readme
|
|
||||||
|
|
||||||
vars
|
vars
|
||||||
1 petId $res.data.id
|
1 petId $res.data.id
|
||||||
/vars
|
/vars
|
||||||
|
|
||||||
|
readme
|
||||||
|
Documentation about the request
|
||||||
|
/readme
|
||||||
|
|
||||||
response-example
|
response-example
|
||||||
name Created
|
name Created
|
||||||
status 201
|
status 201
|
||||||
headers
|
headers
|
||||||
1 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 {{transactionId}}
|
0 transaction-id {{transactionId}}
|
||||||
/headers
|
/headers
|
||||||
|
|
||||||
body
|
body
|
||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"launchesPast": [
|
"launchesPast": [
|
||||||
{
|
{
|
||||||
@ -96,6 +96,6 @@ body
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/body
|
/body
|
||||||
/response-example
|
/response-example
|
Reference in New Issue
Block a user