Added base project
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: Get Auth User
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{api_url}}/users/me
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Accept: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
meta {
|
||||
name: Login
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/auth/login
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email":"[email protected]",
|
||||
"password":"123"
|
||||
}
|
||||
}
|
||||
|
||||
tests {
|
||||
let data = res.getBody();
|
||||
bru.setEnvVar("token",data.token);
|
||||
}
|
||||
Reference in New Issue
Block a user