24 lines
294 B
Plaintext
24 lines
294 B
Plaintext
meta {
|
|
name: Create API Key
|
|
type: http
|
|
seq: 4
|
|
}
|
|
|
|
post {
|
|
url: {{BASE_URL}}/auth/key
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"email": "john.doe@gmail.com",
|
|
"password": "fake_password123"
|
|
}
|
|
}
|
|
|
|
script:post-response {
|
|
const apiKey = res.body
|
|
bru.setVar("bearer",apiKey)
|
|
}
|