Initial commit.
This commit is contained in:
25
rest-client-collection/Imagora/Users/Login as Thomas.bru
Normal file
25
rest-client-collection/Imagora/Users/Login as Thomas.bru
Normal file
@@ -0,0 +1,25 @@
|
||||
meta {
|
||||
name: Login as Thomas
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{url}}/api/users/login
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"username": "Joux",
|
||||
"password": "P@ssword!"
|
||||
}
|
||||
}
|
||||
|
||||
script:post-response {
|
||||
if (res.status === 200) {
|
||||
bru.setEnvVar('userId', res.body.refreshToken.userId);
|
||||
bru.setEnvVar('jwt', res.body.accessToken);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user