docs(bruno): new bruno files
This commit is contained in:
21
bruno/VoD-System/Users/Login.bru
Normal file
21
bruno/VoD-System/Users/Login.bru
Normal file
@@ -0,0 +1,21 @@
|
||||
meta {
|
||||
name: Login
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/users/login
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"token": "{{$oauth2.credentials.id_token}}"
|
||||
}
|
||||
}
|
||||
|
||||
script:post-response {
|
||||
bru.setEnvVar("token", res.getBody().data.token);
|
||||
}
|
||||
Reference in New Issue
Block a user