diff --git a/bruno/VoD-System/Download/Converted Download.bru b/bruno/VoD-System/Download/Converted Download.bru new file mode 100644 index 0000000..d68bf22 --- /dev/null +++ b/bruno/VoD-System/Download/Converted Download.bru @@ -0,0 +1,11 @@ +meta { + name: Converted Download + type: http + seq: 2 +} + +get { + url: {{base_url}}/download/output/{{uuid}} + body: none + auth: inherit +} diff --git a/bruno/VoD-System/Download/Original Download.bru b/bruno/VoD-System/Download/Original Download.bru new file mode 100644 index 0000000..91d8e26 --- /dev/null +++ b/bruno/VoD-System/Download/Original Download.bru @@ -0,0 +1,11 @@ +meta { + name: Original Download + type: http + seq: 1 +} + +get { + url: {{base_url}}/download/input/{{uuid}} + body: none + auth: inherit +} diff --git a/bruno/VoD-System/Download/folder.bru b/bruno/VoD-System/Download/folder.bru new file mode 100644 index 0000000..be111cc --- /dev/null +++ b/bruno/VoD-System/Download/folder.bru @@ -0,0 +1,3 @@ +meta { + name: Download +} diff --git a/bruno/VoD-System/Edit/Edit.bru b/bruno/VoD-System/Edit/Edit.bru new file mode 100644 index 0000000..13bce1f --- /dev/null +++ b/bruno/VoD-System/Edit/Edit.bru @@ -0,0 +1,16 @@ +meta { + name: Edit + type: http + seq: 1 +} + +post { + url: {{base_url}}/edit/{{uuid}} + body: formUrlEncoded + auth: inherit +} + +body:form-urlencoded { + startPoint: 30 + endPoint: 120 +} diff --git a/bruno/VoD-System/Edit/Process.bru b/bruno/VoD-System/Edit/Process.bru new file mode 100644 index 0000000..a44770d --- /dev/null +++ b/bruno/VoD-System/Edit/Process.bru @@ -0,0 +1,11 @@ +meta { + name: Process + type: http + seq: 2 +} + +get { + url: {{base_url}}/process/{{uuid}} + body: none + auth: inherit +} diff --git a/bruno/VoD-System/Edit/Progress.bru b/bruno/VoD-System/Edit/Progress.bru new file mode 100644 index 0000000..c54718f --- /dev/null +++ b/bruno/VoD-System/Edit/Progress.bru @@ -0,0 +1,11 @@ +meta { + name: Progress + type: http + seq: 3 +} + +get { + url: {{base_url}}/progress/{{uuid}} + body: none + auth: inherit +} diff --git a/bruno/VoD-System/Edit/folder.bru b/bruno/VoD-System/Edit/folder.bru new file mode 100644 index 0000000..8dd7263 --- /dev/null +++ b/bruno/VoD-System/Edit/folder.bru @@ -0,0 +1,3 @@ +meta { + name: Edit +} diff --git a/bruno/VoD-System/Metadata/Converted Metadata.bru b/bruno/VoD-System/Metadata/Converted Metadata.bru new file mode 100644 index 0000000..0bda004 --- /dev/null +++ b/bruno/VoD-System/Metadata/Converted Metadata.bru @@ -0,0 +1,11 @@ +meta { + name: Converted Metadata + type: http + seq: 2 +} + +get { + url: {{base_url}}/metadata/converted/{{uuid}} + body: none + auth: inherit +} diff --git a/bruno/VoD-System/Metadata/Original Metadata.bru b/bruno/VoD-System/Metadata/Original Metadata.bru new file mode 100644 index 0000000..1a56e14 --- /dev/null +++ b/bruno/VoD-System/Metadata/Original Metadata.bru @@ -0,0 +1,11 @@ +meta { + name: Original Metadata + type: http + seq: 1 +} + +get { + url: {{base_url}}/metadata/original/{{uuid}} + body: none + auth: inherit +} diff --git a/bruno/VoD-System/Metadata/folder.bru b/bruno/VoD-System/Metadata/folder.bru new file mode 100644 index 0000000..b670ec8 --- /dev/null +++ b/bruno/VoD-System/Metadata/folder.bru @@ -0,0 +1,3 @@ +meta { + name: Metadata +} diff --git a/bruno/VoD-System/Upload.bru b/bruno/VoD-System/Upload.bru index 48de474..6351484 100644 --- a/bruno/VoD-System/Upload.bru +++ b/bruno/VoD-System/Upload.bru @@ -1,19 +1,19 @@ meta { name: Upload type: http - seq: 2 + seq: 1 } post { - url: {{base_url}}/api/v1/upload + url: {{base_url}}/upload body: multipartForm auth: inherit } body:multipart-form { - file: @file(/Users/faoite/Downloads/Why Australia's Economy is Stalling.mp4) + file: @file(/home/dylan/Documents/Test Videos/long_normal.mp4) } script:post-response { - bru.setEnvVar("video_uuid",res.getBody()); + bru.setEnvVar("uuid", res.body); } diff --git a/bruno/VoD-System/environments/dev.bru b/bruno/VoD-System/environments/dev.bru deleted file mode 100644 index 951368f..0000000 --- a/bruno/VoD-System/environments/dev.bru +++ /dev/null @@ -1,4 +0,0 @@ -vars { - base_url: http://localhost:8080 - video_uuid: -} diff --git a/bruno/VoD-System/environments/local.bru b/bruno/VoD-System/environments/local.bru new file mode 100644 index 0000000..594e52d --- /dev/null +++ b/bruno/VoD-System/environments/local.bru @@ -0,0 +1,4 @@ +vars { + base_url: http://localhost:8080/api/v1 + uuid: +}