27 lines
291 B
Plaintext
27 lines
291 B
Plaintext
meta {
|
|
name: login
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
post {
|
|
url: {{host}}/api/v1/login
|
|
body: json
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"username": "{{username}}",
|
|
"password": "{{password}}"
|
|
}
|
|
}
|
|
|
|
vars:pre-request {
|
|
username: test
|
|
password: 12345678
|
|
}
|
|
|
|
vars:post-response {
|
|
token: res.body.token
|
|
}
|