salix/api/test.bru

25 lines
311 B
Plaintext

meta {
name: login
type: http
seq: 1
}
post {
url: {{URL}}/api/VnUsers/sign-in
body: json
auth: none
}
body:json {
{"user":"developer", "password": "nightmare"}
}
body:multipart-form {
user: developer
password: nightmare
}
script:post-response {
bru.setEnvVar('TOKEN', res.body.token)
}