Files
lst/LogisticsSupportTool_API_DOCS/LstV2/Auth/Login.bru

31 lines
345 B
Plaintext

meta {
name: Login
type: http
seq: 1
}
post {
url: {{urlv2}}/api/auth/login
body: json
auth: inherit
}
headers {
Content-Type: application/json
}
body:json {
{
"username": "matthes01",
"password": "{{v2Password}}"
}
}
script:post-response {
bru.setEnvVar("jwtV2",res.body.token)
}
settings {
encodeUrl: true
}