Overhaul refactor. Still things in progress

This commit is contained in:
2025-04-05 22:42:13 -04:00
parent 310d1eaad8
commit 769762dfa7
133 changed files with 119890 additions and 8784 deletions

View 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
View 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
View 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
View 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"
}
}