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,11 @@
meta {
name: Delete Airport
type: http
seq: 4
}
delete {
url: {{BASE_URL}}/airports/TEST
body: none
auth: none
}

View File

@@ -0,0 +1,11 @@
meta {
name: Delete All Airports
type: http
seq: 5
}
delete {
url: {{BASE_URL}}/airports
body: none
auth: none
}

View File

@@ -0,0 +1,11 @@
meta {
name: Get Airport
type: http
seq: 2
}
get {
url: {{BASE_URL}}/airports/TEST
body: none
auth: none
}

View File

@@ -0,0 +1,11 @@
meta {
name: Get All Airports
type: http
seq: 3
}
get {
url: {{BASE_URL}}/airports
body: none
auth: none
}

View File

@@ -0,0 +1,28 @@
meta {
name: Insert Airport
type: http
seq: 1
}
post {
url: {{BASE_URL}}/airports
body: json
auth: none
}
body:json {
{
"icao": "TEST",
"name": "Test Airport",
"category": "unknown",
"iso_country": "",
"iso_region": "",
"municipality": "",
"elevation_ft": 0,
"latitude": 0,
"longitude": 0,
"runways": [],
"frequencies": [],
"public": true
}
}

View File

@@ -0,0 +1,15 @@
meta {
name: Find Metars
type: http
seq: 1
}
get {
url: {{BASE_URL}}/metars?icaos=KHEF,KJYO,KLNS,KRMN,KIAD,KSFO,KPBI,KJFK,KORD,KDAL,KSAN,KGFK
body: none
auth: none
}
params:query {
icaos: KHEF,KJYO,KLNS,KRMN,KIAD,KSFO,KPBI,KJFK,KORD,KDAL,KSAN,KGFK
}

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

9
bruno/bruno.json Normal file
View File

@@ -0,0 +1,9 @@
{
"version": "1",
"name": "Aviation",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}

3
bruno/collection.bru Normal file
View File

@@ -0,0 +1,3 @@
vars:pre-request {
BASE_URL: http://localhost:5000
}