Skip to content

Commit

Permalink
chore: bruno http requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lutonite committed Jan 22, 2024
1 parent d118ca0 commit b09df34
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 0 deletions.
21 changes: 21 additions & 0 deletions http/Create Virtual Machines.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
meta {
name: Create Virtual Machines
type: http
seq: 2
}

post {
url: https://api.dai.heig.lutonite.dev/virtual-machines
body: json
auth: none
}

body:json {
{
"hostname": "lutonux",
"os": "Linux 6.7.2",
"ip": "10.129.42.42",
"cpu": 4,
"ram": 32.8
}
}
11 changes: 11 additions & 0 deletions http/Delete Virtual Machine.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Delete Virtual Machine
type: http
seq: 5
}

delete {
url: https://api.dai.heig.lutonite.dev/virtual-machines/45ee5f02-d884-45b4-a129-bde2ffbb4897
body: none
auth: none
}
11 changes: 11 additions & 0 deletions http/Get Virtual Machine.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Get Virtual Machine
type: http
seq: 3
}

get {
url: https://api.dai.heig.lutonite.dev/virtual-machines/45ee5f02-d884-45b4-a129-bde2ffbb4897
body: none
auth: none
}
11 changes: 11 additions & 0 deletions http/List Virtual Machines.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: List Virtual Machines
type: http
seq: 1
}

get {
url: https://api.dai.heig.lutonite.dev/virtual-machines
body: none
auth: none
}
21 changes: 21 additions & 0 deletions http/Update Virtual Machines.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
meta {
name: Update Virtual Machines
type: http
seq: 4
}

put {
url: https://api.dai.heig.lutonite.dev/virtual-machines/45ee5f02-d884-45b4-a129-bde2ffbb4897
body: json
auth: none
}

body:json {
{
"hostname": "lutonux",
"os": "Linux 6.7.2",
"ip": "10.129.42.42",
"cpu": 2,
"ram": 32.8
}
}
5 changes: 5 additions & 0 deletions http/bruno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"version": "1",
"name": "DAI - PW04",
"type": "collection"
}
8 changes: 8 additions & 0 deletions terraform/records.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
resource "cloudflare_record" "dai_root" {
zone_id = data.cloudflare_zone.main.id
type = "A"
name = "dai.heig"
value = "185.144.38.63"
proxied = false
}

resource "cloudflare_record" "whoami" {
zone_id = data.cloudflare_zone.main.id
type = "A"
Expand Down

0 comments on commit b09df34

Please sign in to comment.