Skip to content

Commit

Permalink
Add Bruno API collection
Browse files Browse the repository at this point in the history
  • Loading branch information
arunvelsriram committed Jul 19, 2024
1 parent 311ec25 commit bce4fc8
Show file tree
Hide file tree
Showing 21 changed files with 274 additions and 0 deletions.
18 changes: 18 additions & 0 deletions api-collection/bruno/External API/Get.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
meta {
name: Get
type: http
seq: 1
}

post {
url: http://localhost:4444/call
body: json
auth: none
}

body:json {
{
"url": "http://httpbin.org/get",
"method": "GET"
}
}
15 changes: 15 additions & 0 deletions api-collection/bruno/External API/Post.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Post
type: http
seq: 2
}

post {
url: http://localhost:4444/call
body: json
auth: none
}

body:json {
{"url": "http://httpbin.org/post", "method": "POST", "body": "{key: value}"}
}
22 changes: 22 additions & 0 deletions api-collection/bruno/Proxy/Create Proxy.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
meta {
name: Create Proxy
type: http
seq: 1
}

post {
url: http://localhost:4444/proxy
body: json
auth: none
}

body:json {
{
"path": "/time",
"method": "GET",
"proxy": {
"url": "http://worldtimeapi.org/api/timezone/asia/kolkata",
"method": "GET"
}
}
}
22 changes: 22 additions & 0 deletions api-collection/bruno/Proxy/Delete Proxy.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
meta {
name: Delete Proxy
type: http
seq: 3
}

delete {
url: http://localhost:4444/proxy
body: json
auth: none
}

body:json {
{
"path": "/time",
"method": "GET",
"proxy": {
"url": "http://worldtimeapi.org/api/timezone/asia/kolkata",
"method": "GET"
}
}
}
11 changes: 11 additions & 0 deletions api-collection/bruno/Proxy/Proxy Call Check.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Proxy Call Check
type: http
seq: 2
}

get {
url: http://localhost:4444/time
body: none
auth: none
}
15 changes: 15 additions & 0 deletions api-collection/bruno/Repeat/Delayed HTTP Status.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Delayed HTTP Status
type: http
seq: 2
}

get {
url: http://localhost:4444/return/401?delay=300
body: none
auth: none
}

params:query {
delay: 300
}
11 changes: 11 additions & 0 deletions api-collection/bruno/Repeat/HTTP Status.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: HTTP Status
type: http
seq: 1
}

get {
url: http://localhost:4444/return/200
body: none
auth: none
}
11 changes: 11 additions & 0 deletions api-collection/bruno/Status/Be Healthy.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Be Healthy
type: http
seq: 5
}

put {
url: http://localhost:4444/control/health/perfect
body: none
auth: none
}
11 changes: 11 additions & 0 deletions api-collection/bruno/Status/Be Ready.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Be Ready
type: http
seq: 8
}

put {
url: http://localhost:4444/control/ready/perfect
body: none
auth: none
}
11 changes: 11 additions & 0 deletions api-collection/bruno/Status/Be Unready.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Be Unready
type: http
seq: 9
}

put {
url: http://localhost:4444/control/ready/sick
body: none
auth: none
}
11 changes: 11 additions & 0 deletions api-collection/bruno/Status/CPU Spike.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: CPU Spike
type: http
seq: 12
}

put {
url: http://localhost:4444/control/goturbo/cpu
body: none
auth: none
}
11 changes: 11 additions & 0 deletions api-collection/bruno/Status/Fall Sick.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Fall Sick
type: http
seq: 6
}

put {
url: http://localhost:4444/control/health/sick
body: none
auth: none
}
11 changes: 11 additions & 0 deletions api-collection/bruno/Status/Health.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Health
type: http
seq: 3
}

get {
url: http://localhost:4444/health
body: none
auth: none
}
11 changes: 11 additions & 0 deletions api-collection/bruno/Status/Memory Spike.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Memory Spike
type: http
seq: 11
}

put {
url: http://localhost:4444/control/goturbo/memory
body: none
auth: none
}
11 changes: 11 additions & 0 deletions api-collection/bruno/Status/Metadata.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Metadata
type: http
seq: 2
}

get {
url: http://localhost:4444/meta
body: none
auth: none
}
11 changes: 11 additions & 0 deletions api-collection/bruno/Status/Ready.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Ready
type: http
seq: 4
}

get {
url: http://localhost:4444/readiness
body: none
auth: none
}
15 changes: 15 additions & 0 deletions api-collection/bruno/Status/Recover Health.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Recover Health
type: http
seq: 7
}

put {
url: http://localhost:4444/control/health/sick?resetInSeconds=20
body: none
auth: none
}

params:query {
resetInSeconds: 20
}
15 changes: 15 additions & 0 deletions api-collection/bruno/Status/Recover Readiness.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Recover Readiness
type: http
seq: 10
}

put {
url: http://localhost:4444/control/ready/sick?resetInSeconds=20
body: none
auth: none
}

params:query {
resetInSeconds: 20
}
11 changes: 11 additions & 0 deletions api-collection/bruno/Status/Suicide.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Suicide
type: http
seq: 13
}

put {
url: http://localhost:4444/control/crash
body: none
auth: none
}
11 changes: 11 additions & 0 deletions api-collection/bruno/Status/Version.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Version
type: http
seq: 1
}

get {
url: http://localhost:4444/version
body: none
auth: none
}
9 changes: 9 additions & 0 deletions api-collection/bruno/bruno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": "1",
"name": "dobby",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}

0 comments on commit bce4fc8

Please sign in to comment.