mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-04 05:43:52 +01:00
45 lines
417 B
Plaintext
45 lines
417 B
Plaintext
|
meta {
|
||
|
name: echo bigint
|
||
|
type: http
|
||
|
seq: 6
|
||
|
}
|
||
|
|
||
|
post {
|
||
|
url: {{host}}/api/echo/json
|
||
|
body: json
|
||
|
auth: none
|
||
|
}
|
||
|
|
||
|
headers {
|
||
|
foo: bar
|
||
|
}
|
||
|
|
||
|
auth:basic {
|
||
|
username: asd
|
||
|
password: j
|
||
|
}
|
||
|
|
||
|
auth:bearer {
|
||
|
token:
|
||
|
}
|
||
|
|
||
|
body:json {
|
||
|
{
|
||
|
"hello": 990531470713421825
|
||
|
}
|
||
|
}
|
||
|
|
||
|
body:text {
|
||
|
{
|
||
|
"hello": 990531470713421825
|
||
|
}
|
||
|
}
|
||
|
|
||
|
assert {
|
||
|
res.status: eq 200
|
||
|
}
|
||
|
|
||
|
script:pre-request {
|
||
|
bru.setVar("foo", "foo-world-2");
|
||
|
}
|