diff --git a/tools/bruno/bruno.json b/tools/bruno/bruno.json new file mode 100644 index 00000000..229b3cef --- /dev/null +++ b/tools/bruno/bruno.json @@ -0,0 +1,9 @@ +{ + "version": "1", + "name": "osctrl-api", + "type": "collection", + "ignore": [ + "node_modules", + ".git" + ] +} diff --git a/tools/bruno/collection.bru b/tools/bruno/collection.bru new file mode 100644 index 00000000..e69de29b diff --git a/tools/bruno/environments/get -environments--env--enroll--target-.bru b/tools/bruno/environments/get -environments--env--enroll--target-.bru new file mode 100644 index 00000000..a0499218 --- /dev/null +++ b/tools/bruno/environments/get -environments--env--enroll--target-.bru @@ -0,0 +1,20 @@ +meta { + name: get -environments--env--enroll--target- + type: http + seq: 3 +} + +get { + url: https://osctrl.net/api/v1/environments/{env}/enroll/{target} + body: none + auth: bearer +} + +params:path { + env: + target: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/environments/get -environments--env--remove--target-.bru b/tools/bruno/environments/get -environments--env--remove--target-.bru new file mode 100644 index 00000000..e9091c30 --- /dev/null +++ b/tools/bruno/environments/get -environments--env--remove--target-.bru @@ -0,0 +1,20 @@ +meta { + name: get -environments--env--remove--target- + type: http + seq: 4 +} + +get { + url: https://osctrl.net/api/v1/environments/{env}/remove/{target} + body: none + auth: bearer +} + +params:path { + env: + target: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/environments/get -environments--env-.bru b/tools/bruno/environments/get -environments--env-.bru new file mode 100644 index 00000000..a926396a --- /dev/null +++ b/tools/bruno/environments/get -environments--env-.bru @@ -0,0 +1,19 @@ +meta { + name: get -environments--env- + type: http + seq: 2 +} + +get { + url: https://osctrl.net/api/v1/environments/{env} + body: none + auth: bearer +} + +params:path { + env: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/environments/get -environments.bru b/tools/bruno/environments/get -environments.bru new file mode 100644 index 00000000..8c1ba5d8 --- /dev/null +++ b/tools/bruno/environments/get -environments.bru @@ -0,0 +1,15 @@ +meta { + name: get -environments + type: http + seq: 1 +} + +get { + url: https://osctrl.net/api/v1/environments + body: none + auth: bearer +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/nodes/get -nodes--env--active.bru b/tools/bruno/nodes/get -nodes--env--active.bru new file mode 100644 index 00000000..02f7e0ac --- /dev/null +++ b/tools/bruno/nodes/get -nodes--env--active.bru @@ -0,0 +1,19 @@ +meta { + name: get -nodes--env--active + type: http + seq: 2 +} + +get { + url: https://osctrl.net/api/v1/nodes/{env}/active + body: none + auth: bearer +} + +params:path { + env: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/nodes/get -nodes--env--all.bru b/tools/bruno/nodes/get -nodes--env--all.bru new file mode 100644 index 00000000..6f0224ca --- /dev/null +++ b/tools/bruno/nodes/get -nodes--env--all.bru @@ -0,0 +1,19 @@ +meta { + name: get -nodes--env--all + type: http + seq: 1 +} + +get { + url: https://osctrl.net/api/v1/nodes/{env}/all + body: none + auth: bearer +} + +params:path { + env: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/nodes/get -nodes--env--inactive.bru b/tools/bruno/nodes/get -nodes--env--inactive.bru new file mode 100644 index 00000000..a6f0cc75 --- /dev/null +++ b/tools/bruno/nodes/get -nodes--env--inactive.bru @@ -0,0 +1,19 @@ +meta { + name: get -nodes--env--inactive + type: http + seq: 3 +} + +get { + url: https://osctrl.net/api/v1/nodes/{env}/inactive + body: none + auth: bearer +} + +params:path { + env: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/nodes/get -nodes-node--identifier-.bru b/tools/bruno/nodes/get -nodes-node--identifier-.bru new file mode 100644 index 00000000..5c66f51c --- /dev/null +++ b/tools/bruno/nodes/get -nodes-node--identifier-.bru @@ -0,0 +1,19 @@ +meta { + name: get -nodes-node--identifier- + type: http + seq: 4 +} + +get { + url: https://osctrl.net/api/v1/nodes/node/{identifier} + body: none + auth: bearer +} + +params:path { + identifier: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/nodes/post -nodes--env--delete.bru b/tools/bruno/nodes/post -nodes--env--delete.bru new file mode 100644 index 00000000..08ecae04 --- /dev/null +++ b/tools/bruno/nodes/post -nodes--env--delete.bru @@ -0,0 +1,25 @@ +meta { + name: post -nodes--env--delete + type: http + seq: 5 +} + +post { + url: https://osctrl.net/api/v1/nodes/{env}/delete + body: json + auth: bearer +} + +params:path { + env: +} + +auth:bearer { + token: {{token}} +} + +body:json { + { + "uuid": "" + } +} diff --git a/tools/bruno/platforms/get -platforms--env-.bru b/tools/bruno/platforms/get -platforms--env-.bru new file mode 100644 index 00000000..eb0884d7 --- /dev/null +++ b/tools/bruno/platforms/get -platforms--env-.bru @@ -0,0 +1,19 @@ +meta { + name: get -platforms--env- + type: http + seq: 2 +} + +get { + url: https://osctrl.net/api/v1/platforms/{env} + body: none + auth: bearer +} + +params:path { + env: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/platforms/get -platforms.bru b/tools/bruno/platforms/get -platforms.bru new file mode 100644 index 00000000..3ce8b2b5 --- /dev/null +++ b/tools/bruno/platforms/get -platforms.bru @@ -0,0 +1,15 @@ +meta { + name: get -platforms + type: http + seq: 1 +} + +get { + url: https://osctrl.net/api/v1/platforms + body: none + auth: bearer +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/queries/get -all-queries--env-.bru b/tools/bruno/queries/get -all-queries--env-.bru new file mode 100644 index 00000000..b0a44690 --- /dev/null +++ b/tools/bruno/queries/get -all-queries--env-.bru @@ -0,0 +1,19 @@ +meta { + name: get -all-queries--env- + type: http + seq: 5 +} + +get { + url: https://osctrl.net/api/v1/all-queries/{env} + body: none + auth: bearer +} + +params:path { + env: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/queries/get -carves--env---name-.bru b/tools/bruno/queries/get -carves--env---name-.bru new file mode 100644 index 00000000..0ebfb116 --- /dev/null +++ b/tools/bruno/queries/get -carves--env---name-.bru @@ -0,0 +1,20 @@ +meta { + name: get -carves--env---name- + type: http + seq: 8 +} + +get { + url: https://osctrl.net/api/v1/carves/{env}/{name} + body: none + auth: bearer +} + +params:path { + env: + name: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/queries/get -carves--env-.bru b/tools/bruno/queries/get -carves--env-.bru new file mode 100644 index 00000000..430ea71b --- /dev/null +++ b/tools/bruno/queries/get -carves--env-.bru @@ -0,0 +1,19 @@ +meta { + name: get -carves--env- + type: http + seq: 6 +} + +get { + url: https://osctrl.net/api/v1/carves/{env} + body: none + auth: bearer +} + +params:path { + env: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/queries/get -queries--env---name-.bru b/tools/bruno/queries/get -queries--env---name-.bru new file mode 100644 index 00000000..107c19ff --- /dev/null +++ b/tools/bruno/queries/get -queries--env---name-.bru @@ -0,0 +1,20 @@ +meta { + name: get -queries--env---name- + type: http + seq: 3 +} + +get { + url: https://osctrl.net/api/v1/queries/{env}/{name} + body: none + auth: bearer +} + +params:path { + env: + name: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/queries/get -queries--env--results--name-.bru b/tools/bruno/queries/get -queries--env--results--name-.bru new file mode 100644 index 00000000..268449ff --- /dev/null +++ b/tools/bruno/queries/get -queries--env--results--name-.bru @@ -0,0 +1,19 @@ +meta { + name: get -queries--env--results--name- + type: http + seq: 4 +} + +get { + url: https://osctrl.net/api/v1/queries/{env}/results/{name} + body: none + auth: bearer +} + +params:path { + name: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/queries/get -queries--env-.bru b/tools/bruno/queries/get -queries--env-.bru new file mode 100644 index 00000000..14b954bc --- /dev/null +++ b/tools/bruno/queries/get -queries--env-.bru @@ -0,0 +1,19 @@ +meta { + name: get -queries--env- + type: http + seq: 1 +} + +get { + url: https://osctrl.net/api/v1/queries/{env} + body: none + auth: bearer +} + +params:path { + env: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/queries/post -carves--env-.bru b/tools/bruno/queries/post -carves--env-.bru new file mode 100644 index 00000000..04bf7a8a --- /dev/null +++ b/tools/bruno/queries/post -carves--env-.bru @@ -0,0 +1,15 @@ +meta { + name: post -carves--env- + type: http + seq: 7 +} + +post { + url: https://osctrl.net/api/v1/carves/{env} + body: json + auth: bearer +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/queries/post -queries--env-.bru b/tools/bruno/queries/post -queries--env-.bru new file mode 100644 index 00000000..b5568a9d --- /dev/null +++ b/tools/bruno/queries/post -queries--env-.bru @@ -0,0 +1,23 @@ +meta { + name: post -queries--env- + type: http + seq: 2 +} + +post { + url: https://osctrl.net/api/v1/queries/{env} + body: json + auth: bearer +} + +auth:bearer { + token: {{token}} +} + +body:json { + { + "uuid": "", + "query": "", + "hidden": "" + } +} diff --git a/tools/bruno/settings/get -settings--service---env-.bru b/tools/bruno/settings/get -settings--service---env-.bru new file mode 100644 index 00000000..9d327fdf --- /dev/null +++ b/tools/bruno/settings/get -settings--service---env-.bru @@ -0,0 +1,20 @@ +meta { + name: get -settings--service---env- + type: http + seq: 3 +} + +get { + url: https://osctrl.net/api/v1/settings/{service}/{env} + body: none + auth: bearer +} + +params:path { + service: + env: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/settings/get -settings--service--json--env-.bru b/tools/bruno/settings/get -settings--service--json--env-.bru new file mode 100644 index 00000000..3a34ec25 --- /dev/null +++ b/tools/bruno/settings/get -settings--service--json--env-.bru @@ -0,0 +1,20 @@ +meta { + name: get -settings--service--json--env- + type: http + seq: 5 +} + +get { + url: https://osctrl.net/api/v1/settings/{service}/json/{env} + body: none + auth: bearer +} + +params:path { + service: + env: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/settings/get -settings--service--json.bru b/tools/bruno/settings/get -settings--service--json.bru new file mode 100644 index 00000000..1007a3e7 --- /dev/null +++ b/tools/bruno/settings/get -settings--service--json.bru @@ -0,0 +1,19 @@ +meta { + name: get -settings--service--json + type: http + seq: 4 +} + +get { + url: https://osctrl.net/api/v1/settings/{service}/json + body: none + auth: bearer +} + +params:path { + service: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/settings/get -settings--service-.bru b/tools/bruno/settings/get -settings--service-.bru new file mode 100644 index 00000000..3684dc35 --- /dev/null +++ b/tools/bruno/settings/get -settings--service-.bru @@ -0,0 +1,19 @@ +meta { + name: get -settings--service- + type: http + seq: 2 +} + +get { + url: https://osctrl.net/api/v1/settings/{service} + body: none + auth: bearer +} + +params:path { + service: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/settings/get -settings.bru b/tools/bruno/settings/get -settings.bru new file mode 100644 index 00000000..28d87388 --- /dev/null +++ b/tools/bruno/settings/get -settings.bru @@ -0,0 +1,15 @@ +meta { + name: get -settings + type: http + seq: 1 +} + +get { + url: https://osctrl.net/api/v1/settings + body: none + auth: bearer +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/tags/get -tags--env-.bru b/tools/bruno/tags/get -tags--env-.bru new file mode 100644 index 00000000..1f11d729 --- /dev/null +++ b/tools/bruno/tags/get -tags--env-.bru @@ -0,0 +1,19 @@ +meta { + name: get -tags--env- + type: http + seq: 2 +} + +get { + url: https://osctrl.net/api/v1/tags/{env} + body: none + auth: bearer +} + +params:path { + env: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/tags/get -tags.bru b/tools/bruno/tags/get -tags.bru new file mode 100644 index 00000000..b3a1792b --- /dev/null +++ b/tools/bruno/tags/get -tags.bru @@ -0,0 +1,15 @@ +meta { + name: get -tags + type: http + seq: 1 +} + +get { + url: https://osctrl.net/api/v1/tags + body: none + auth: bearer +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/users/get -users--username-.bru b/tools/bruno/users/get -users--username-.bru new file mode 100644 index 00000000..f2f8c59d --- /dev/null +++ b/tools/bruno/users/get -users--username-.bru @@ -0,0 +1,19 @@ +meta { + name: get -users--username- + type: http + seq: 2 +} + +get { + url: https://osctrl.net/api/v1/users/{username} + body: none + auth: bearer +} + +params:path { + username: +} + +auth:bearer { + token: {{token}} +} diff --git a/tools/bruno/users/get -users.bru b/tools/bruno/users/get -users.bru new file mode 100644 index 00000000..a52afe36 --- /dev/null +++ b/tools/bruno/users/get -users.bru @@ -0,0 +1,15 @@ +meta { + name: get -users + type: http + seq: 1 +} + +get { + url: https://osctrl.net/api/v1/users + body: none + auth: bearer +} + +auth:bearer { + token: {{token}} +}