feat: 0.0.1
This commit is contained in:
146 files changed
+10444
No files matched your search
@@ -0,0 +1,33 @@
|
||||
meta {
|
||||
name: Login
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{uri}}/auth/login
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"username":"test",
|
||||
"password":"TestPassword"
|
||||
}
|
||||
}
|
||||
|
||||
script:post-response {
|
||||
const data = res.getBody();
|
||||
|
||||
const token = data.data.access_token;
|
||||
const refresh_token = data.data.refresh_token;
|
||||
|
||||
bru.setEnvVar("token", token);
|
||||
bru.setEnvVar("refresh_token", refresh_token);
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
Reference in new issue
Block a user