Overhaul refactor. Still things in progress
This commit is contained in:
23
bruno/Users/Create API Key.bru
Normal file
23
bruno/Users/Create API Key.bru
Normal file
@@ -0,0 +1,23 @@
|
||||
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)
|
||||
}
|
||||
18
bruno/Users/Login.bru
Normal file
18
bruno/Users/Login.bru
Normal file
@@ -0,0 +1,18 @@
|
||||
meta {
|
||||
name: Login
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{BASE_URL}}/auth/login
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email": "admin",
|
||||
"password": "CHANGEME"
|
||||
}
|
||||
}
|
||||
18
bruno/Users/Logout.bru
Normal file
18
bruno/Users/Logout.bru
Normal file
@@ -0,0 +1,18 @@
|
||||
meta {
|
||||
name: Logout
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{BASE_URL}}/auth/logout
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email": "john.doe@gmail.com",
|
||||
"password": "fake_password123"
|
||||
}
|
||||
}
|
||||
20
bruno/Users/Register.bru
Normal file
20
bruno/Users/Register.bru
Normal file
@@ -0,0 +1,20 @@
|
||||
meta {
|
||||
name: Register
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{BASE_URL}}/auth/register
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email": "john.doe@gmail.com",
|
||||
"password": "fake_password123",
|
||||
"first_name": "John",
|
||||
"last_name": "Doe"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user