Skip to content

Commit bce4fc8

Browse files
committed
Add Bruno API collection
1 parent 311ec25 commit bce4fc8

21 files changed

+274
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
meta {
2+
name: Get
3+
type: http
4+
seq: 1
5+
}
6+
7+
post {
8+
url: http://localhost:4444/call
9+
body: json
10+
auth: none
11+
}
12+
13+
body:json {
14+
{
15+
"url": "http://httpbin.org/get",
16+
"method": "GET"
17+
}
18+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
meta {
2+
name: Post
3+
type: http
4+
seq: 2
5+
}
6+
7+
post {
8+
url: http://localhost:4444/call
9+
body: json
10+
auth: none
11+
}
12+
13+
body:json {
14+
{"url": "http://httpbin.org/post", "method": "POST", "body": "{key: value}"}
15+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
meta {
2+
name: Create Proxy
3+
type: http
4+
seq: 1
5+
}
6+
7+
post {
8+
url: http://localhost:4444/proxy
9+
body: json
10+
auth: none
11+
}
12+
13+
body:json {
14+
{
15+
"path": "/time",
16+
"method": "GET",
17+
"proxy": {
18+
"url": "http://worldtimeapi.org/api/timezone/asia/kolkata",
19+
"method": "GET"
20+
}
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
meta {
2+
name: Delete Proxy
3+
type: http
4+
seq: 3
5+
}
6+
7+
delete {
8+
url: http://localhost:4444/proxy
9+
body: json
10+
auth: none
11+
}
12+
13+
body:json {
14+
{
15+
"path": "/time",
16+
"method": "GET",
17+
"proxy": {
18+
"url": "http://worldtimeapi.org/api/timezone/asia/kolkata",
19+
"method": "GET"
20+
}
21+
}
22+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: Proxy Call Check
3+
type: http
4+
seq: 2
5+
}
6+
7+
get {
8+
url: http://localhost:4444/time
9+
body: none
10+
auth: none
11+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
meta {
2+
name: Delayed HTTP Status
3+
type: http
4+
seq: 2
5+
}
6+
7+
get {
8+
url: http://localhost:4444/return/401?delay=300
9+
body: none
10+
auth: none
11+
}
12+
13+
params:query {
14+
delay: 300
15+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: HTTP Status
3+
type: http
4+
seq: 1
5+
}
6+
7+
get {
8+
url: http://localhost:4444/return/200
9+
body: none
10+
auth: none
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: Be Healthy
3+
type: http
4+
seq: 5
5+
}
6+
7+
put {
8+
url: http://localhost:4444/control/health/perfect
9+
body: none
10+
auth: none
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: Be Ready
3+
type: http
4+
seq: 8
5+
}
6+
7+
put {
8+
url: http://localhost:4444/control/ready/perfect
9+
body: none
10+
auth: none
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: Be Unready
3+
type: http
4+
seq: 9
5+
}
6+
7+
put {
8+
url: http://localhost:4444/control/ready/sick
9+
body: none
10+
auth: none
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: CPU Spike
3+
type: http
4+
seq: 12
5+
}
6+
7+
put {
8+
url: http://localhost:4444/control/goturbo/cpu
9+
body: none
10+
auth: none
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: Fall Sick
3+
type: http
4+
seq: 6
5+
}
6+
7+
put {
8+
url: http://localhost:4444/control/health/sick
9+
body: none
10+
auth: none
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: Health
3+
type: http
4+
seq: 3
5+
}
6+
7+
get {
8+
url: http://localhost:4444/health
9+
body: none
10+
auth: none
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: Memory Spike
3+
type: http
4+
seq: 11
5+
}
6+
7+
put {
8+
url: http://localhost:4444/control/goturbo/memory
9+
body: none
10+
auth: none
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: Metadata
3+
type: http
4+
seq: 2
5+
}
6+
7+
get {
8+
url: http://localhost:4444/meta
9+
body: none
10+
auth: none
11+
}

api-collection/bruno/Status/Ready.bru

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: Ready
3+
type: http
4+
seq: 4
5+
}
6+
7+
get {
8+
url: http://localhost:4444/readiness
9+
body: none
10+
auth: none
11+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
meta {
2+
name: Recover Health
3+
type: http
4+
seq: 7
5+
}
6+
7+
put {
8+
url: http://localhost:4444/control/health/sick?resetInSeconds=20
9+
body: none
10+
auth: none
11+
}
12+
13+
params:query {
14+
resetInSeconds: 20
15+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
meta {
2+
name: Recover Readiness
3+
type: http
4+
seq: 10
5+
}
6+
7+
put {
8+
url: http://localhost:4444/control/ready/sick?resetInSeconds=20
9+
body: none
10+
auth: none
11+
}
12+
13+
params:query {
14+
resetInSeconds: 20
15+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: Suicide
3+
type: http
4+
seq: 13
5+
}
6+
7+
put {
8+
url: http://localhost:4444/control/crash
9+
body: none
10+
auth: none
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: Version
3+
type: http
4+
seq: 1
5+
}
6+
7+
get {
8+
url: http://localhost:4444/version
9+
body: none
10+
auth: none
11+
}

api-collection/bruno/bruno.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"version": "1",
3+
"name": "dobby",
4+
"type": "collection",
5+
"ignore": [
6+
"node_modules",
7+
".git"
8+
]
9+
}

0 commit comments

Comments
 (0)